different steps depending on event.

pull/1691/head
FireMasterK 4 years ago
parent 380b64071e
commit 40a2579821
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

@ -9,7 +9,6 @@ on:
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -29,16 +28,18 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }} username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }} password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push latest tag - name: Build and push for Push Event
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
file: docker/Dockerfile file: docker/Dockerfile
labels: quay.expires-after=12w
push: true 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 uses: docker/build-push-action@v2
with: with:
context: . context: .

Loading…
Cancel
Save