From 722c619f9a65928a0e739087aa0e4dcf72bbb419 Mon Sep 17 00:00:00 2001 From: Sammy Date: Mon, 24 Jul 2023 14:59:55 +0200 Subject: [PATCH] chore(ci): add workflow to build and push images --- .github/workflows/docker.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..d12d5fe --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,26 @@ +--- +name: Docker + +on: + push: + tags: [ '*.*.*' ] + +env: + VERSION: "4.6.2-r1" + +jobs: + docker-ghcr: + uses: famedly/github-workflows/.github/workflows/docker.yml@99b3869fa38e02492b6711c523c96eb6cf638c62 + with: + push: ${{ github.event_name != 'pull_request' }} # Always build, don't publish on pull requests + image_name: famedly/powerdns + build_args: "VERSION=${{ github.ref_name }}" + docker-nexus: + uses: famedly/github-workflows/.github/workflows/docker.yml@99b3869fa38e02492b6711c523c96eb6cf638c62 + 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=${{ github.ref_name }}" + secrets: inherit