mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-12 14:35:48 +00:00
Working on updated workflow for Docker image publishing.
This commit is contained in:
parent
33277a316d
commit
54775e6c69
20
.github/workflows/build-and-publish.yml
vendored
20
.github/workflows/build-and-publish.yml
vendored
@ -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:
|
||||||
|
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user