Use bash variable substitution for docker tag

This commit is contained in:
Christoph Petrausch
2020-04-22 00:50:27 +02:00
parent bdb825f357
commit 8e5df10de9
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -1,17 +1,13 @@
name: Docker Image CI
on:
push:
branches: ["master"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag mqtt2prometheus:${GITHUB_REF##*/}