different steps depending on event.

This commit is contained in:
FireMasterK 2021-01-22 09:20:17 +05:30
parent 380b64071e
commit 40a2579821
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -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: .