mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-22 15:30:25 +00:00
* 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
24 lines
619 B
YAML
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
|