Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed Oct 26, 2023
1 parent 7e88eb0 commit 445db13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .container_app/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
output "container_app_resource_group_name" {
value = azapi_resource.container_app_onboarding.location
}

output "container_app_environment_name" {
value = data.azurerm_container_app_environment.container_app_environment.name
}

output "container_app_name" {
value = azapi_resource.container_app_onboarding.name
}
17 changes: 4 additions & 13 deletions .github/workflows/deploy_onboarding_ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:

jobs:
build:
name: Build onboarding microservice
name: Build OnBoarding Microservice
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == 'true') }}
environment: "${{ inputs.environment != null && inputs.environment || (github.base_ref == 'main' && 'prod' || (github.base_ref == 'develop' && 'uat' || 'dev')) }}-ci"
Expand Down Expand Up @@ -55,21 +55,12 @@ jobs:
echo "environment=$ENV_NAME" >> $GITHUB_OUTPUT
# github doesn't provide a short sha anymore
- name: Set short git commit SHA
- name: Set Short Git Commit SHA
id: setsha
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "short_sha=sha-$calculatedSha" >> $GITHUB_OUTPUT
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: 17
# distribution: "temurin"

# - name: Build project with Maven
# run: mvn -B package --file onboarding-ms/pom.xml

- name: Setup Docker buildx
uses: docker/[email protected]

Expand All @@ -80,7 +71,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
- name: Docker Meta
id: meta
uses: docker/[email protected]
with:
Expand All @@ -95,7 +86,7 @@ jobs:
org.opencontainers.image.url=github.com/pagopa/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}

- name: Build and push image
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: .
Expand Down

0 comments on commit 445db13

Please sign in to comment.