Skip to content

Commit

Permalink
Update api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnauBlanch authored Dec 22, 2022
1 parent 93c6d1f commit 4a966ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Spring Boot API (api)
name: Build & Deploy Spring Boot API

on:
push:
Expand All @@ -22,6 +22,8 @@ jobs:
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
outputs:
IMAGE_VERSION: ${{ steps.tag_version.outputs.new_version }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -55,8 +57,6 @@ jobs:
with:
tag_prefix: api-v
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Save version as output
run: echo "IMAGE_VERSION=${{ steps.tag_version.outputs.new_version }}" >> $GITHUB_OUTPUT
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
Expand Down Expand Up @@ -103,6 +103,6 @@ jobs:
- name: Deploy to Dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@${{ secrets.DOKKU_HOST }}:22/${{ secrets.APP_NAME }}'
git_remote_url: 'ssh://dokku@${{ secrets.DOKKU_HOST }}:22/${{ secrets.API_APP_NAME }}'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
deploy_docker_image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.build.outputs.IMAGE_VERSION }}

0 comments on commit 4a966ef

Please sign in to comment.