Update docker push action to v2
This commit is contained in:
parent
bd8969b915
commit
b4018cbe73
1 changed files with 17 additions and 17 deletions
30
.github/workflows/docker_push.yml
vendored
30
.github/workflows/docker_push.yml
vendored
|
@ -1,27 +1,27 @@
|
||||||
name: Publish Docker image
|
name: Publish Docker image
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_registry:
|
docker_push:
|
||||||
name: Push Docker image to Docker Hub
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Docker meta
|
||||||
uses: docker/setup-qemu-action@v1
|
id: meta
|
||||||
|
uses: docker/metadata-action@v3
|
||||||
- name: Set up Docker Buildx
|
with:
|
||||||
uses: docker/setup-buildx-action@v1
|
images: seitenwerke/nginx-proxy
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: Push debian image to Docker Hub
|
- name: Push debian image to Docker Hub
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
file: Dockerfile
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
repository: seitenwerke/nginx-proxy
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
tag_with_ref: true
|
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Reference in a new issue