From 03d1c46c5fc4a494bb963558bf24185b69e61226 Mon Sep 17 00:00:00 2001 From: Rory Shanks Date: Tue, 21 Nov 2023 23:06:37 +0100 Subject: [PATCH] Updated automated release to push tags automatically. --- .github/workflows/build.yaml | 12 ++++++++++-- README.md | 4 ++-- build.sh | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9afa708..be938a5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,6 +5,8 @@ on: push: branches: - 'main' + tags: + - 'v*' jobs: build: @@ -24,12 +26,18 @@ jobs: if: github.event_name != 'pull_request' uses: docker/login-action@v1 with: - username: megalan247 + username: rorylshanks password: ${{ secrets.DOCKERHUB_LOGIN_TOKEN }} + - name: Extract metadata for the Docker image + id: meta + uses: docker/metadata-action@v5 + with: + images: rorylshanks/veriflow - name: Build and push uses: docker/build-push-action@v2 with: context: . platforms: linux/arm64,linux/amd64 push: true - tags: megalan247/veriflow:latest \ No newline at end of file + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/README.md b/README.md index 67b9f42..8852e8e 100644 --- a/README.md +++ b/README.md @@ -45,13 +45,13 @@ Veriflow acts as a reverse proxy for all requests, and sits at the ingress point A prebuilt Docker container is available from Dockerhub, containing Veriflow. You can pull the image by simply running ``` -docker run -p 2080:2080 -v $(pwd)/config.yaml:/appdata/config.yaml megalan247/veriflow:latest +docker run -p 2080:2080 -v $(pwd)/config.yaml:/appdata/config.yaml rorylshanks/veriflow:latest ``` You may specify a different configuration file location using the `CONFIG_FILE` env var ``` -docker run -p 2080:2080 -e CONFIG_FILE=/etc/config.yaml -v config.yaml:/etc/config.yaml megalan247/veriflow:latest +docker run -p 2080:2080 -e CONFIG_FILE=/etc/config.yaml -v config.yaml:/etc/config.yaml rorylshanks/veriflow:latest ``` ## Veriflow Configuration Options diff --git a/build.sh b/build.sh index 34debec..2aa3922 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ docker buildx create --use --name multi --platform linux/arm64,linux/amd64 docker buildx build \ --platform linux/arm64,linux/amd64 \ - -t megalan247/veriflow:latest \ + -t rorylshanks/veriflow:latest \ --push \ -f Dockerfile \ .