|
8 | 8 | tags:
|
9 | 9 | - v*
|
10 | 10 |
|
11 |
| - # Run tests for any PRs. |
12 |
| - # pull_request: |
13 |
| - |
14 |
| - # steps: |
15 |
| -# - uses: actions/checkout@v2 |
16 |
| - # Setup mysqlserver. |
17 |
| - # See also https://docs.docker.com/docker-hub/builds/automated-testing/ |
18 | 11 | jobs:
|
19 |
| - mysql57: |
| 12 | + mysql57: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP')) |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v2 |
| 17 | + - name: Shutdown existing MySQL |
| 18 | + run: sudo service mysql stop |
| 19 | + |
| 20 | + push_to_registries: |
20 | 21 | runs-on: ubuntu-latest
|
| 22 | + if: github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'WIP')) |
| 23 | + permissions: |
| 24 | + packages: write |
| 25 | + contents: read |
21 | 26 | steps:
|
22 |
| - - uses: actions/checkout@v2 |
23 |
| - - name: Shutdown existing MySQL |
24 |
| - run: sudo service mysql stop |
25 |
| - |
26 |
| - |
27 |
| - push_to_registries: |
28 |
| - #- name: Push Docker image to multiple registries |
29 |
| - runs-on: ubuntu-latest |
30 |
| - permissions: |
31 |
| - packages: write |
32 |
| - contents: read |
33 |
| - steps: |
34 | 27 | - name: Set up MySQL
|
35 | 28 | uses: cweinberger/github-actions-mysql@main
|
36 | 29 | with:
|
|
62 | 55 | with:
|
63 | 56 | username: ${{ secrets.DOCKER_USERNAME }}
|
64 | 57 | password: ${{ secrets.DOCKER_PASSWORD }}
|
65 |
| - # username: curtishall |
66 |
| - # password: ${{ secrets.DOCKER_PASSWORD }} |
67 |
| -# - name: Extract metadata (tags, labels) for Docker |
68 |
| -# id: meta |
69 |
| -# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 |
70 |
| -# with: |
71 |
| -# images: bluecherrydvr/bluecherry |
72 | 58 |
|
73 | 59 | - name: Extract metadata (tags, labels) for Docker
|
74 | 60 | id: meta
|
|
81 | 67 | with:
|
82 | 68 | #working-directory: server/
|
83 | 69 | context: "{{defaultContext}}:actions"
|
84 |
| - # username: curtishall |
85 |
| - # password: ${{ secrets.DOCKER_PASSWORD }} |
86 |
| -# file: ./server/Dockerfile |
87 | 70 | push: true
|
88 | 71 | tags: ${{ steps.meta.outputs.tags }}
|
89 |
| - labels: ${{ steps.meta.outputs.labels }} |
| 72 | + labels: ${{ steps.meta.outputs.labels }} |
0 commit comments