Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL committed Nov 5, 2023
1 parent 2cc1efe commit ff2ba14
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@ jobs:
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[ "$VERSION" == "main" ] && VERSION=latest
echo "IMAGE_TAG=${{ env.IMAGE_ID }}:$VERSION" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build image
uses: docker/build-push-action@v4
with:
context: .
load: true
file: docker/Dockerfile
tags: ${{ env.IMAGE_TAG }}
labels: "runnumber=${{ github.run_id }}"
push: false
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}
uses: docker/setup-buildx-action@v3

# - name: Build image
# uses: docker/build-push-action@v5
# with:
# context: .
# load: true
# file: docker/Dockerfile
# tags: ${{ env.IMAGE_TAG }}
# labels: "runnumber=${{ github.run_id }}"
# push: false
# cache-from: type=gha, scope=${{ github.workflow }}
# cache-to: type=gha, scope=${{ github.workflow }}

# - name: Test NSL
# run: docker run --entrypoint "/bin/bash" ${{ env.IMAGE_TAG }} -c "cp -r Go-orig/. Go/; cp -r C-orig/. C/; /gobra/test-nsl.sh"
Expand Down Expand Up @@ -79,13 +81,14 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile
tags: ${{ env.IMAGE_TAG }}
labels: "runnumber=${{ github.run_id }}"
platforms: linux/amd64,linux/arm64/v8
# platforms: linux/amd64,linux/arm64/v8
platforms: linux/arm64/v8
push: true
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}

0 comments on commit ff2ba14

Please sign in to comment.