Skip to content

Commit

Permalink
Updated automated release to push tags automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
rorylshanks committed Nov 21, 2023
1 parent 59cf4e4 commit 03d1c46
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- 'main'
tags:
- 'v*'

jobs:
build:
Expand All @@ -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
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
.
Expand Down

0 comments on commit 03d1c46

Please sign in to comment.