mirror of
https://github.com/kaiju/docker-gophernicus.git
synced 2025-08-05 16:48:38 +00:00
tweak workflow
This commit is contained in:
parent
99717c4138
commit
60f418911d
1 changed files with 9 additions and 2 deletions
11
.github/workflows/docker-publish.yml
vendored
11
.github/workflows/docker-publish.yml
vendored
|
@ -5,6 +5,8 @@ jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Setup Docker build
|
- name: Setup Docker build
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to Docker hub
|
- name: Login to Docker hub
|
||||||
|
@ -12,9 +14,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||||
|
- name: Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata@v4
|
||||||
|
with:
|
||||||
|
images: joshkaiju/gophernicus
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: joshkaiju/gophernicus:test
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue