mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-14 23:44:42 -05:00
Refactor Docker image versioning in workflow
This commit is contained in:
parent
3985742703
commit
adbed87305
1 changed files with 5 additions and 3 deletions
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
|
|
@ -12,11 +12,13 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set Version
|
||||
run: export VERSION=$(date +%s)
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$(date +%s)
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
|
||||
- name: Add latest tag to docker image
|
||||
run: docker tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$(date +%s) ghcr.io/raspberryprogramming/tc2-bbs-mesh:latest
|
||||
run: docker tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION ghcr.io/raspberryprogramming/tc2-bbs-mesh:latest
|
||||
- name: Push docker image to ghcr
|
||||
run: docker push ghcr.io/raspberryprogramming/tc2-bbs-mesh:$(date +%s)
|
||||
run: docker push ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
|
||||
- name: Push docker latest image to ghcr
|
||||
run: docker push ghcr.io/raspberryprogramming/tc2-bbs-mesh:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue