Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
curtishall authored Jan 2, 2024
1 parent ebc9917 commit 28f340e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish Docker image
on:
push:
branches: [ "dev", "master" ]
pull_request:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review]
branches: [ "dev", "master" ]
# Publish `v1.2.3` tags as releases.
tags:
Expand All @@ -11,15 +12,15 @@ on:
jobs:
mysql57:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP'))
if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP')
steps:
- uses: actions/checkout@v2
- name: Shutdown existing MySQL
run: sudo service mysql stop

push_to_registries:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP'))
if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP')
permissions:
packages: write
contents: read
Expand All @@ -37,7 +38,7 @@ jobs:
characterSet: utf8mb4
collation: utf8mb4_general_ci
sqlMode: NO_ENGINE_SUBSTITUTION

- name: Print running docker containers
run: docker ps
- name: Check out the repo
Expand Down

0 comments on commit 28f340e

Please sign in to comment.