deploy: add version tag

This commit is contained in:
Wonderfall 2021-05-06 20:40:22 +02:00 committed by GitHub
parent 88db6d6bee
commit 7c91034107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,10 @@ jobs:
- name: Build an image from Dockerfile
run: |
docker build -t ghcr.io/wonderfall/mastodon .
docker build \
-t ghcr.io/wonderfall/mastodon \
-t ghcr.io/wonderfall/mastodon:$(grep -oP '(?<=MASTODON_VERSION=).*' Dockerfile | head -c8) \
.
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
@ -42,3 +45,4 @@ jobs:
- name: Push image to GitHub
run: |
docker push ghcr.io/wonderfall/mastodon
docker push ghcr.io/wonderfall/mastodon:$(grep -oP '(?<=MASTODON_VERSION=).*' Dockerfile | head -c8)