Skip to content

Commit

Permalink
Fix taging of build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptorsten committed Jan 21, 2024
1 parent 7fcc4b0 commit d8ec486
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ptorstensson/aw-gateway-rs
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand All @@ -25,6 +35,10 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PSW }}

- name: Build & Push Image
run: |
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ptorstensson/aw-gateway-rs:dev --tag ptorstensson/aw-gateway-rs:$(date +%s) .
- name: Build and Push Image
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

0 comments on commit d8ec486

Please sign in to comment.