From 7c91034107e93ec1ae20f3595df731d84691b905 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Thu, 6 May 2021 20:40:22 +0200 Subject: [PATCH] deploy: add version tag --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ff71f49..e2c314e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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)