Skip to content

Commit

Permalink
tentatively updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Oct 25, 2023
1 parent 6e5c0cd commit bee631e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- context: "server"
image: "base-server"
platforms: "linux/amd64,linux/arm64"
stages: "dev,runtime"

steps:
- name: Checkout
Expand Down Expand Up @@ -57,13 +58,13 @@ jobs:
name=ghcr.io/${{ github.repository_owner }}/${{matrix.image}}
tags: |
# Tag scheduled runs with date
type=schedule,pattern={{date 'YYYYMMDD'}}
type=schedule,pattern={{date 'YYYYMMDD'}},suffix=-${{ matrix.stages }}
# Tag with branch name
type=ref,event=branch
type=ref,event=branch,suffix=-${{ matrix.stages }}
# Tag with pr-number
type=ref,event=pr
type=ref,event=pr,suffix=-${{ matrix.stages }}
# Tag with git tag on release
type=ref,event=tag
type=ref,event=tag,suffix=-${{ matrix.stages }}
- name: Build and push image
uses: docker/[email protected]
Expand All @@ -74,3 +75,4 @@ jobs:
push: ${{ !github.event.pull_request.head.repo.fork }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
target: ${{ matrix.stages }}

0 comments on commit bee631e

Please sign in to comment.