Skip to content

Commit

Permalink
fix no tag
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlbark committed Sep 18, 2024
1 parent dbeb1ee commit db5d0dc
Showing 1 changed file with 6 additions and 37 deletions.
43 changes: 6 additions & 37 deletions .github/workflows/beta-java-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish and deploy
name: Publish to juniper-eng-infra
on:
push:
tags:
Expand All @@ -16,7 +16,7 @@ jobs:
get-version-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
tag: 1.3.82 #${{ steps.tag.outputs.tag }}
steps:
- name: Checkout Current Code
uses: actions/checkout@v3
Expand All @@ -33,14 +33,14 @@ jobs:
id-token: 'write'
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.build-publish.outputs.published-image }}
tag: ${{ steps.juniper-eng-build-publish.outputs.published-image }}
steps:
- name: Checkout Current Code
uses: actions/checkout@v3
with:
token: ${{ secrets.BROADBOT_TOKEN }}
- name: build and publish image
id: build-publish
id: juniper-eng-build-publish
uses: ./.github/actions/juniper-eng-build-push-image
with:
version-tag: ${{ needs.get-version-tag.outputs.tag }}
Expand Down Expand Up @@ -68,48 +68,17 @@ jobs:
id-token: 'write'
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.build-publish.outputs.published-image }}
tag: ${{ steps.juniper-eng-build-publish.outputs.published-image }}
steps:
- name: Checkout Current Code
uses: actions/checkout@v3
with:
token: ${{ secrets.BROADBOT_TOKEN }}
- name: build and publish image
id: build-publish
id: juniper-eng-build-publish
uses: ./.github/actions/juniper-eng-build-push-image
with:
version-tag: ${{ needs.get-version-tag.outputs.tag }}
image-repo: 'us-central1-docker.pkg.dev'
image-name: "broad-juniper-eng-infra/juniper/${{ github.event.repository.name }}-participant"
gradle-build-args: ':api-participant:jibDockerBuild'

- name: Notify slack on failure
uses: broadinstitute/[email protected]
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
channel: '#juniper-dev-notifications'
status: failure
author_name: Publish docker Image
fields: job
text: "Publish to broad-juniper-eng-infra failed :sadpanda:, image ${{ steps.build-publish.outputs.published-image }} failed to publish"
username: 'Juniper Build Notifications'

notify-upon-completion:
runs-on: ubuntu-latest
if: always()
needs: [get-version-tag]
steps:
- uses: broadinstitute/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
channel: '#juniper-dev-notifications'
# Result status on the set version in dev job which actually performs the deploy
author_name: Image published to juniper eng infra
fields: job
text: Deploy to dev of ${{ needs.get-version-tag.outputs.tag }} completed successfully
username: 'Juniper Build Notifications'


0 comments on commit db5d0dc

Please sign in to comment.