Bump com.slack.api:slack-api-client from 1.40.3 to 1.44.1 #213
Workflow file for this run
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
name: "deploy to dev" | |
# Note: Execute when feature branch is merge into develop this CI will be executed. | |
on: | |
pull_request: | |
types: [ closed ] | |
branches: [ develop ] | |
env: | |
IMAGE_NAME: api | |
concurrency: | |
group: ci-deploy-dev-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
dev-deploy: | |
runs-on: ubuntu-latest | |
environment: dev | |
permissions: # Necessary for workload identity provider | |
contents: 'read' | |
id-token: 'write' | |
if: github.event.pull_request.merged == true | |
steps: | |
# 1. Setup | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'liberica' | |
java-version: '21' | |
cache: 'maven' | |
# 2. Sets & print variables | |
- name: Sets variables | |
id: variables | |
run: | | |
# 1. Set vars | |
IMAGE_REGISTRY="us-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-diplomats/${{ env.IMAGE_NAME }}" | |
IMAGE_TAG="dev-${{ github.run_number }}" | |
# 3. Set vars as env | |
echo "IMAGE_REGISTRY=$IMAGE_REGISTRY" >> $GITHUB_ENV | |
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV | |
- name: Print variables | |
run: | | |
echo "IMAGE_TAG=$IMAGE_TAG" | |
echo "IMAGE_REGISTRY=$IMAGE_REGISTRY" | |
# # 3. Auth | |
# - name: Auth via Workload Identity Federation | |
# id: auth | |
# uses: google-github-actions/[email protected] | |
# with: | |
# workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | |
# service_account: ${{ secrets.SERVICE_ACCOUNT }} # impersonated SA | |
# | |
# # 4. Setup gcloud & configure docker to use gcloud | |
# - name: Setup gcloud | |
# uses: google-github-actions/[email protected] | |
# with: | |
# project_id: ${{ secrets.PROJECT_ID }} | |
# - name: Setup docker to authenticate via gcloud | |
# run: gcloud --quiet auth configure-docker us-docker.pkg.dev | |
# | |
# # 5. Build image | |
# - name: Build image | |
# run: mvn clean package -DskipTests spring-boot:build-image --no-transfer-progress -Dspring-boot.build-image.imageName=$IMAGE_REGISTRY:$IMAGE_TAG | |
# | |
# # 6. Push image | |
# - name: Push image | |
# run: docker push $IMAGE_REGISTRY:$IMAGE_TAG | |
# | |
# # 7. Notify if fails | |
# # - name: Notify slack fail | |
# # if: failure() | |
# # env: | |
# # SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} | |
# # uses: voxmedia/github-action-slack-notify-build@v1 | |
# # with: | |
# # channel: app-alerts | |
# # status: FAILED | |
# # color: danger |