26 lines
656 B
YAML
26 lines
656 B
YAML
|
name: DockerHub
|
||
|
|
||
|
on:
|
||
|
workflow_run:
|
||
|
workflows: Tests
|
||
|
branches: master
|
||
|
types: completed
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
name: Publish
|
||
|
runs-on: ubuntu-latest
|
||
|
needs: [format, test]
|
||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@master
|
||
|
- name: Publish to Registry
|
||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||
|
with:
|
||
|
name: shish2k/shimmie2
|
||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||
|
cache: ${{ github.event_name != 'schedule' }}
|
||
|
buildoptions: "--build-arg RUN_TESTS=false"
|