Skip to content

Commit

Permalink
build: docker fixes (#3378)
Browse files Browse the repository at this point in the history
* build: shorten tags on docker push

* build: only deploy on commits to master
  • Loading branch information
iBotPeaches committed Oct 16, 2023
1 parent 34a6970 commit 03fa70b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-beta.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and push docker (beta)

on:
pull_request:
branches: [master]
types: [closed]
push:
branches:
- master

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -43,5 +43,4 @@ jobs:
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.APKTOOL_HASH }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:beta
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:master
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:snapshot
2 changes: 0 additions & 2 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,5 @@ jobs:
file: ./docker/Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.APKTOOL_HASH }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.APKTOOL_TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:prod
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 03fa70b

Please sign in to comment.