Set VERSION environment variable for Docker build

This commit is contained in:
Camerin Figueroa 2025-11-15 19:38:28 -05:00 committed by GitHub
parent adbed87305
commit 54a93e54b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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