remove test branch, only publish if not PR
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -5,7 +5,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- registry-pushes
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Required to make some things output color
|
# Required to make some things output color
|
||||||
@@ -165,6 +164,7 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to Dockerhub
|
- name: Publish to Dockerhub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: docker.io/${{ github.repository }}
|
IMAGE_NAME: docker.io/${{ github.repository }}
|
||||||
IMAGE_SUFFIX_AMD64: amd64
|
IMAGE_SUFFIX_AMD64: amd64
|
||||||
@@ -193,6 +193,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Publish to GitHub Container Registry
|
- name: Publish to GitHub Container Registry
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: ghcr.io/${{ github.repository }}
|
IMAGE_NAME: ghcr.io/${{ github.repository }}
|
||||||
IMAGE_SUFFIX_AMD64: amd64
|
IMAGE_SUFFIX_AMD64: amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user