Skip to content

Commit

Permalink
Attempt 1 at fixing uffizi
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jan 31, 2025
1 parent f2f67de commit f84d696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/uffizzi-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,23 @@ jobs:
compose-file-cache-key: ${{ steps.hash.outputs.hash }}
steps:
- name: Checkout git repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Render Compose File
run: |
ONLINE_GO_IMAGE=${{ needs.build-online-go.outputs.tags }}
export ONLINE_GO_IMAGE
envsubst '${ONLINE_GO_IMAGE}' < ./.github/uffizzi/docker-compose.uffizzi.yml > docker-compose.rendered.yml
cat docker-compose.rendered.yml
- name: Upload Rendered Compose File as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: preview-spec
name: docker-compose
path: docker-compose.rendered.yml
retention-days: 2
- name: Upload PR Event as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: preview-spec
name: event-path
path: ${{ github.event_path }}
retention-days: 2

Expand All @@ -75,8 +75,8 @@ jobs:
steps:
# If this PR is closing, we will not render a compose file nor pass it to the next workflow.
- name: Upload PR Event as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: preview-spec
name: event-path
path: ${{ github.event_path }}
retention-days: 2
2 changes: 1 addition & 1 deletion .github/workflows/uffizzi-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "preview-spec"
return artifact.name == "docker-compose" || artifact.name == "event-path"
})[0];
if (matchArtifact === undefined) {
throw TypeError('Build Artifact not found!');
Expand Down

0 comments on commit f84d696

Please sign in to comment.