build: docker fixes (#3378)
* build: shorten tags on docker push * build: only deploy on commits to master
This commit is contained in:
parent
34a6970852
commit
03fa70bd2a
|
@ -1,9 +1,9 @@
|
|||
name: Build and push docker (beta)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
types: [closed]
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue