Skip to content

chore(ci): add workflow to build and push images #6

chore(ci): add workflow to build and push images

chore(ci): add workflow to build and push images #6

Workflow file for this run

---
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

View workflow run for this annotation

GitHub Actions / Docker

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 19, Col: 19): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION .github/workflows/docker.yml (Line: 27, Col: 19): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
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