Merge pull request #449 from ambrosus/new-cfg #749
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish a docker image | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
- 'test-*' | |
- new-cfg | |
tags: | |
- 'v*' | |
- 'test-*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/metadata-action@v3 | |
id: meta_relay | |
with: | |
images: ghcr.io/ambrosus/ambrosus-bridge | |
- uses: docker/build-push-action@v2 | |
with: | |
context: ./relay | |
push: true | |
tags: ${{ steps.meta_relay.outputs.tags }} | |
labels: ${{ steps.meta_relay.outputs.labels }} |