mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-14 23:44:42 -05:00
Set VERSION environment variable in workflow
This commit is contained in:
parent
54a93e54b2
commit
c11c6e513f
1 changed files with 2 additions and 3 deletions
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
|
|
@ -4,9 +4,6 @@ on:
|
|||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
VERSION: $(date +%s)
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
|
@ -15,6 +12,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set environment variable
|
||||
run: echo "VERSION=$(date +%s)" >> $GITHUB_ENV
|
||||
- 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