Updating master workflow

This commit is contained in:
simojenki
2021-08-23 22:01:56 +10:00
parent 8dc98ee1a5
commit 77fab65d82

View File

@@ -23,12 +23,28 @@ jobs:
name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the repo -
name: Check out the repo
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Push to Docker Hub -
uses: docker/build-push-action@v1 name: Docker meta
id: meta
uses: docker/metadata-action@v3
with: with:
username: ${{ secrets.DOCKER_USERNAME }} images: simojenki/bonob
password: ${{ secrets.DOCKER_PASSWORD }} -
repository: simojenki/bonob name: Login to DockerHub
tag_with_ref: true if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: latest