Skip to content

Commit

Permalink
ci: cd print info
Browse files Browse the repository at this point in the history
  • Loading branch information
Alxandr committed Oct 10, 2024
1 parent 0ae8f39 commit eb8c4c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/scripts/build-push-app.mts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ $.cwd = app.path;
await $`dotnet publish ${source} --os linux-musl -t:PublishContainer -p:ContainerImageTag=${tag} -bl`.verbose(
true
);

const fullImage = `ghcr.io/altinn/altinn-authorization-tmp/${imgCfg.name}:${tag}`;
actions.setOutput("image", fullImage);
actions.setOutput("tag", tag);
10 changes: 9 additions & 1 deletion .github/workflows/_deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,13 @@ jobs:
# tags: ghrc.io/${{ inputs.repository }}/${{ inputs.imageName }}:${{ env.short_sha }}

- name: Build and Push ${{ inputs.name }}
id: list
id: img
run: tsx ./.github/scripts/build-push-app.mts "${{ inputs.name }}"

- name: Print outputs
env:
IMAGE: ${{ steps.img.outputs.image }}
TAG: ${{ steps.img.outputs.tag }}
run: |
echo "Image: ${IMAGE}"
echo "Tag: ${TAG}"

0 comments on commit eb8c4c7

Please sign in to comment.