mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-14 23:44:42 -05:00
Set VERSION environment variable for Docker build
This commit is contained in:
parent
adbed87305
commit
54a93e54b2
1 changed files with 3 additions and 2 deletions
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
|||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
VERSION: $(date +%s)
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
|
@ -12,8 +15,6 @@ 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:$VERSION
|
||||
- name: Add latest tag to docker image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue