diff options
| author | Perflyst <mail@perflyst.de> | 2021-01-22 12:42:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-22 12:42:05 +0100 |
| commit | dd2a7f91cc6c84542ede7daf474733a281c57dfb (patch) | |
| tree | 653fe2169caf8d5482f89c2806def9a5d7fb7771 | |
| parent | a1aa40f500a9a70f58d1a7d43ef17b37f9cce1df (diff) | |
| parent | c86e9dfc8a4f2dddc511f08f19fdeba97ab11143 (diff) | |
| download | invidious-dd2a7f91cc6c84542ede7daf474733a281c57dfb.tar.gz invidious-dd2a7f91cc6c84542ede7daf474733a281c57dfb.tar.bz2 invidious-dd2a7f91cc6c84542ede7daf474733a281c57dfb.zip | |
Merge pull request #1691 from StuffNoOneCaresAbout/container-sha
Container sha without 2 builds
| -rw-r--r-- | .github/workflows/container-release.yml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml index b21123d2..137308d0 100644 --- a/.github/workflows/container-release.yml +++ b/.github/workflows/container-release.yml @@ -4,10 +4,13 @@ on: push: branches: - "master" + pull_request: + branches: "*" + schedule: + - cron: 0 0 * * * jobs: release: - runs-on: ubuntu-latest steps: @@ -27,13 +30,22 @@ jobs: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - - name: Build and push + - 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: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} + - 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 }} |
