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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Docker build
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker hub
|
||||
|
@ -12,9 +14,14 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
- name: Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata@v4
|
||||
with:
|
||||
images: joshkaiju/gophernicus
|
||||
- name: Build and publish
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
tags: joshkaiju/gophernicus:test
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue