test CI fix

This commit is contained in:
Chris
2022-05-15 21:48:05 -04:00
committed by ajnart
parent 7662c11bb5
commit 68111616fe

View File

@@ -32,6 +32,9 @@ env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
# temp
e1: ${{ github.event_name }}
e2: ${{ github.base_ref }}-${{github.head_ref }}
jobs:
# Push image to GitHub Packages.
@@ -114,7 +117,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
if: github.event_name != 'pull_request' || github.base_ref == github.head_ref
if: github.base_ref == github.head_ref
uses: docker/login-action@v2
with:
registry: ghcr.io
@@ -126,6 +129,6 @@ jobs:
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: .
push: ${{ github.event_name != 'pull_request' || github.base_ref == github.head_ref }}
push: ${{ github.base_ref == github.head_ref }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}