summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorFireMasterK <20838718+FireMasterK@users.noreply.github.com>2021-01-22 09:20:17 +0530
committerFireMasterK <20838718+FireMasterK@users.noreply.github.com>2021-01-22 09:20:17 +0530
commit40a257982164c70cb12d421f835220abd41ea3c9 (patch)
tree36c4586a40b7fe35942ad4e09d6de0bad13c4888 /.github
parent380b64071eb79ad92ab5d608c1b0b69ffca5d7d6 (diff)
downloadinvidious-40a257982164c70cb12d421f835220abd41ea3c9.tar.gz
invidious-40a257982164c70cb12d421f835220abd41ea3c9.tar.bz2
invidious-40a257982164c70cb12d421f835220abd41ea3c9.zip
different steps depending on event.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/container-release.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml
index b1a04f26..1859f082 100644
--- a/.github/workflows/container-release.yml
+++ b/.github/workflows/container-release.yml
@@ -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: .