Revert workflow back to original configuration
This commit is contained in:
@@ -8,10 +8,17 @@ on:
|
||||
|
||||
jobs:
|
||||
dev:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: [blacksmith-8vcpu-ubuntu-2204, linux]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Clear space to remove unused folders
|
||||
run: |
|
||||
rm -rf /usr/share/dotnet
|
||||
rm -rf /opt/ghc
|
||||
rm -rf "/usr/local/share/boost"
|
||||
rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
@@ -25,6 +32,11 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: blacksmith docker layer cache
|
||||
uses: useblacksmith/build-push-action@v1
|
||||
with:
|
||||
setup-only: true
|
||||
|
||||
- name: Set environment variables
|
||||
run: |
|
||||
echo "DOCKERHUB_REPO=${{ vars.DOCKERHUB_REPO || 'runpod' }}" >> $GITHUB_ENV
|
||||
@@ -33,11 +45,11 @@ jobs:
|
||||
echo "RELEASE_VERSION=${GITHUB_REF##refs/heads/}" | sed 's/\//-/g' >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push the images to Docker Hub
|
||||
uses: docker/bake-action@v4
|
||||
uses: docker/bake-action@v2
|
||||
with:
|
||||
push: true
|
||||
env:
|
||||
DOCKERHUB_REPO: ${{ env.DOCKERHUB_REPO }}
|
||||
DOCKERHUB_IMG: ${{ env.DOCKERHUB_IMG }}
|
||||
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
|
||||
HUGGINGFACE_ACCESS_TOKEN: ${{ env.HUGGINGFACE_ACCESS_TOKEN }}
|
||||
set: |
|
||||
*.args.DOCKERHUB_REPO=${{ env.DOCKERHUB_REPO }}
|
||||
*.args.DOCKERHUB_IMG=${{ env.DOCKERHUB_IMG }}
|
||||
*.args.RELEASE_VERSION=${{ env.RELEASE_VERSION }}
|
||||
*.args.HUGGINGFACE_ACCESS_TOKEN=${{ env.HUGGINGFACE_ACCESS_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user