Skip to content

Commit

Permalink
chore: even better docker image naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 23, 2024
1 parent 9b7ddc4 commit aa8eb2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
id: timestamp
run: echo "::set-output name=timestamp::$(date +%Y-%m-%d-%H-%M-%S)"

- name: Get short commit hash
id: commit
run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"

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

Expand All @@ -58,7 +62,9 @@ jobs:
context: .
file: ./ops/Dockerfile
push: true
tags: lunary/lunary-ee:latest,lunary/lunary-ee:${{ steps.timestamp.outputs.timestamp }}
tags: |
lunary/lunary-ee:latest
lunary/lunary-ee:rev-${{ steps.timestamp.outputs.timestamp }}-${{ steps.commit.outputs.hash }}
platforms: linux/amd64

deploy:
Expand Down

0 comments on commit aa8eb2d

Please sign in to comment.