Skip to content

Commit

Permalink
Add manual trigger event to docker github action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsetton authored Nov 15, 2023
1 parent 8fd6cf8 commit 706d80d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: docker

on:
push:
branches:
- master
branches: [ master ]
workflow_dispatch:

jobs:
docker:

name: Docker Hub Publishing
runs-on: ubuntu-latest

strategy:
Expand All @@ -21,20 +21,25 @@ jobs:
latest: false

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
tags: ${{ matrix.tags }}
flavor: latest=${{ matrix.latest }}

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
build-args: ${{ matrix.build-args }}
Expand Down

0 comments on commit 706d80d

Please sign in to comment.