-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbeb1ee
commit db5d0dc
Showing
1 changed file
with
6 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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' | ||
|
||
|