Skip to content

Commit

Permalink
add latest_ci_<unixtime> label to docker images (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkwp authored Aug 30, 2023
1 parent 35d902c commit 186cc20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
packages: write

steps:
- name: Get current time
id: current-time
run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT

- name: Checkout repository
uses: actions/checkout@v3

Expand All @@ -35,6 +39,7 @@ jobs:
type=sha,format=short,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=raw,value=latest-ci_${{steps.current-time.outputs.unix_time}},enable={{is_default_branch}}
latest-ci
- name: Set up Docker Buildx
Expand Down

0 comments on commit 186cc20

Please sign in to comment.