Working on updated workflow for Docker image publishing.

This commit is contained in:
Matt Scott 2022-12-09 11:41:38 -05:00
parent 33277a316d
commit 54775e6c69
2 changed files with 10 additions and 11 deletions

View File

@ -11,41 +11,41 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Repository Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Docker meta - name: Docker Image Metadata
id: meta id: meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v3
with: with:
images: | images: |
ngoduykhanh/powerdns-admin powerdnsadmin/pda-legacy
tags: | tags: |
type=ref,event=tag type=ref,event=tag
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
- name: Set up Docker Buildx - name: Docker Buildx Setup
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Login to DockerHub - name: Docker Hub Authentication
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME_V2 }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN_V2 }}
- name: Build latest image - name: Docker Image Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
with: with:
context: ./ context: ./
file: ./docker/Dockerfile file: ./docker/Dockerfile
push: true push: true
tags: ngoduykhanh/powerdns-admin:latest tags: powerdnsadmin/pda-legacy:latest
- name: Build release image - name: Docker Image Release Tagging
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ startsWith(github.ref, 'refs/tags/v') }} if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with: with:

View File

@ -1,5 +1,4 @@
FROM alpine:3.13 AS builder FROM alpine:3.13 AS builder
LABEL maintainer="k@ndk.name"
ARG BUILD_DEPENDENCIES="build-base \ ARG BUILD_DEPENDENCIES="build-base \
libffi-dev \ libffi-dev \