chore(ci): add workflow to build and push images #6
Workflow file for this run
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: Docker | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
tags: [ 'v*.*.*' ] | ||
pull_request: | ||
env: | ||
VERSION: 4.6.2-r1 | ||
jobs: | ||
docker-ghcr: | ||
uses: famedly/github-workflows/.github/workflows/docker.yml@c75c3f1df7eacac1288b026a36d08112770d62ad | ||
with: | ||
push: ${{ github.event_name != 'pull_request' }} # Always build, don't publish on pull requests | ||
image_name: famedly/powerdns | ||
build_args: '["VERSION=${{ VERSION }}"]' | ||
Check failure on line 19 in .github/workflows/docker.yml GitHub Actions / DockerInvalid workflow file
|
||
docker-nexus: | ||
uses: famedly/github-workflows/.github/workflows/docker.yml@c75c3f1df7eacac1288b026a36d08112770d62ad | ||
with: | ||
push: ${{ github.event_name != 'pull_request' }} # Always build, don't publish on pull requests | ||
registry_user: famedly-ci | ||
registry: docker-oss.nexus.famedly.de | ||
image_name: powerdns | ||
build_args: '["VERSION=${{ VERSION }}"]' | ||
secrets: inherit |