Skip to content

Commit

Permalink
Update trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrouth authored and alexgoff committed Oct 2, 2024
1 parent a8f07bd commit 3ce81ca
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
- "v*"
pull_request:
types:
- labeled
- 'opened'
- 'synchronize'
- 'reopened'
# - 'closed'
branches:
- 'develop'
- 'master'
Expand All @@ -23,6 +23,7 @@ jobs:
build:
name: Build Container Image
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'preview') || github.event.label.name == 'preview' }}
outputs:
image_tag: ${{ steps.deploy-tag.outputs.image_tag }}
image_name: ${{ steps.deploy-tag.outputs.image_name }}
Expand Down Expand Up @@ -101,6 +102,17 @@ jobs:
type=gha
build-args: |
RUN_BUILD=false
-
uses: imjasonh/[email protected]
if: ${{ github.event_name == 'pull_request' }}
-
name: Preview prep
if: ${{ github.event_name == 'pull_request' }}
run: |-
API_IMAGE=$(echo "${{ steps.deploy-tag.outputs.image_name }}" | sed -e 's/-client/-api/g')
if ! crane config ${API_IMAGE}:${{ steps.deploy-tag.outputs.image_tag }}; then
crane tag ${API_IMAGE}:latest ${{ steps.deploy-tag.outputs.image_tag }}
fi
- name: Summary
run: |
cat <<-EOT >> "$GITHUB_STEP_SUMMARY"
Expand Down

0 comments on commit 3ce81ca

Please sign in to comment.