Skip to content

Commit

Permalink
Merge pull request #1124 from gettakaro/tag-main-branch-as-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele authored Aug 17, 2024
2 parents 4f3d03c + e8dce7b commit 96bd2cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.package.name }}
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
- name: Get Git commit timestamps
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
Expand Down

0 comments on commit 96bd2cd

Please sign in to comment.