Remove container release on PR

This commit is contained in:
Perflyst 2021-01-28 12:51:34 +01:00 committed by GitHub
parent 51ebec7c13
commit e35345f135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,6 @@ on:
push: push:
branches: branches:
- "master" - "master"
pull_request:
branches: "*"
schedule: schedule:
- cron: 0 0 * * * - cron: 0 0 * * *
@ -39,13 +37,3 @@ jobs:
labels: quay.expires-after=12w labels: quay.expires-after=12w
push: true push: true
tags: quay.io/invidious/invidious:${{ github.sha }},quay.io/invidious/invidious:latest tags: quay.io/invidious/invidious:${{ github.sha }},quay.io/invidious/invidious:latest
- name: Build and push for Pull Request
if: github.ref != 'refs/heads/master'
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
labels: quay.expires-after=6w
push: true
tags: quay.io/invidious/invidious:${{ github.sha }}