Skip to content

Commit

Permalink
Update docker-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mbmcmullen27 authored Nov 11, 2023
1 parent acf2ac1 commit 490a4db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set Image Tag
run: echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}:${{ matrix.arch }}-$(date +%Y%m%d.$GITHUB_RUN_NUMBER)" >> $GITHUB_ENV

- name: Docker Build
shell: bash
run: |
docker buildx build \
--tag ghcr.io/${GITHUB_REPOSITORY,,}:${{ matrix.arch }}-$(date +%Y%m%d.$GITHUB_RUN_NUMBER) \
--tag $IMAGE\
--platform linux/${{ matrix.arch }} \
--load .
docker images
Expand All @@ -42,4 +45,4 @@ jobs:
- name: Docker Publish
shell: bash
run: |
docker push ghcr.io/${GITHUB_REPOSITORY,,}:$(date +%Y%m%d.$GITHUB_RUN_NUMBER)
docker push $IMAGE

0 comments on commit 490a4db

Please sign in to comment.