Skip to content

Commit

Permalink
artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Feb 2, 2025
1 parent c126dd5 commit 21c2f19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
- main

jobs:
# environment:
# runs-on: ubuntu-latest
# outputs:
# artifact-path: "/tmp"
# steps:
# - run: echo "Setting up environment"
environment:
runs-on: ubuntu-latest
outputs:
artifact: "/tmp"
steps:
- run: echo "Setting up environment"
version:
uses: walt-id/waltid-identity/.github/workflows/version.yml@266f5c09359450c39019a6da38f2b331e7122918
# gradle-build:
Expand All @@ -26,11 +26,11 @@ jobs:
jsonpath: ".github/workflows/docker-matrix.json"
docker:
uses: walt-id/waltid-identity/.github/workflows/docker.yml@feat/docker-build-share
needs: [ version, docker-matrix ]
needs: [ environment, version, docker-matrix ]
with:
images: ${{ needs.docker-matrix.outputs.json }}
version: ${{ needs.version.outputs.release_version }}
artifact: "true"
artifact: ${{ needs.environment.outputs.artifact }}
ebsi-ct-v3:
uses: walt-id/waltid-identity/.github/workflows/ebsictv3.yml@feat/docker-build-share
needs: [ version, docker ]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
push: ${{ inputs.publish }}
file: ${{ matrix.folder }}/Dockerfile
tags: waltid/${{ matrix.image }}:${{ inputs.tag }}, waltid/${{ matrix.image }}:${{ inputs.version }}
outputs: type=docker,dest=${{ runner.temp }}/${{ matrix.image }}.tar
outputs: type=docker,dest=${{ inputs.artifact }}/${{ matrix.image }}.tar
- name: Upload artifact
if: ${{ inputs.artifact == '' }}
if: ${{ inputs.artifact != '' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.image }}
path: ${{ runner.temp }}/${{ matrix.image }}.tar
path: ${{ inputs.artifact }}/${{ matrix.image }}.tar
retention-days: 1

0 comments on commit 21c2f19

Please sign in to comment.