summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPerflyst <mail@perflyst.de>2021-01-21 23:51:54 +0100
committerGitHub <noreply@github.com>2021-01-21 23:51:54 +0100
commita00453e1510e6d00d7f109080b37352647a3a83e (patch)
treebbd40081cb11a9aa2b77b98c54db4c06a783be18 /.github
parenta1aa40f500a9a70f58d1a7d43ef17b37f9cce1df (diff)
downloadinvidious-a00453e1510e6d00d7f109080b37352647a3a83e.tar.gz
invidious-a00453e1510e6d00d7f109080b37352647a3a83e.tar.bz2
invidious-a00453e1510e6d00d7f109080b37352647a3a83e.zip
Build latest only on master, add commit sha tag
Close #1688
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/container-release.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml
index b21123d2..3d61928f 100644
--- a/.github/workflows/container-release.yml
+++ b/.github/workflows/container-release.yml
@@ -4,6 +4,8 @@ on:
push:
branches:
- "master"
+ pull_request:
+ branches: "*"
jobs:
release:
@@ -27,7 +29,8 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- - name: Build and push
+ - name: Build and push latest tag
+ if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2
with:
context: .
@@ -35,5 +38,13 @@ jobs:
push: true
tags: quay.io/invidious/invidious:latest
+ - name: Build and push commit sha tag
+ uses: docker/build-push-action@v2
+ with:
+ context: .
+ file: docker/Dockerfile
+ push: true
+ tags: quay.io/invidious/invidious:${{ github.sha }}
+
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}