Set VERSION environment variable in workflow

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

View file

@ -4,9 +4,6 @@ on:
push: push:
branches: [ "main" ] branches: [ "main" ]
env:
VERSION: $(date +%s)
jobs: jobs:
build: build:
@ -15,6 +12,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set environment variable
run: echo "VERSION=$(date +%s)" >> $GITHUB_ENV
- name: Build the Docker image - name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
- name: Add latest tag to docker image - name: Add latest tag to docker image