lychee/.github/workflows/docker.yml
Matthias b7bbcf69e9
Don't try to publish Docker image on fork (#332)
* Don't try to publish Docker image on fork

https://github.com/lycheeverse/lychee/issues/321#issuecomment-919161530

* Move if condition to up to job
2021-09-20 11:13:54 +02:00

24 lines
619 B
YAML

on:
repository_dispatch:
workflow_dispatch:
push:
branches:
- master
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
name: Publish Docker Image
jobs:
build:
if: github.repository_owner == 'lycheeverse'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@3.01
with:
name: lycheeverse/lychee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
snapshot: true
tag_semver: true