mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-05 08:50:29 +01:00
different steps depending on event.
This commit is contained in:
parent
380b64071e
commit
40a2579821
9
.github/workflows/container-release.yml
vendored
9
.github/workflows/container-release.yml
vendored
@ -9,7 +9,6 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -29,16 +28,18 @@ jobs:
|
||||
username: ${{ secrets.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_PASSWORD }}
|
||||
|
||||
- name: Build and push latest tag
|
||||
- name: Build and push for Push Event
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: docker/Dockerfile
|
||||
labels: quay.expires-after=12w
|
||||
push: true
|
||||
tags: quay.io/invidious/invidious:latest
|
||||
tags: quay.io/invidious/invidious:${{ github.sha }},quay.io/invidious/invidious:latest
|
||||
|
||||
- name: Build and push commit sha tag
|
||||
- name: Build and push for Pull Request
|
||||
if: github.ref != 'refs/heads/master'
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
|
Loading…
Reference in New Issue
Block a user