diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 9c96bba..f4ac09c 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -86,6 +86,7 @@ runs: DOCKER_TAG: ${{ steps.tag.outputs.tag }} with: targets: app + load: true set: | *.output=type=docker,dest=${{ steps.tar.outputs.path }} diff --git a/.github/actions/load/action.yml b/.github/actions/load/action.yml new file mode 100644 index 0000000..73f716c --- /dev/null +++ b/.github/actions/load/action.yml @@ -0,0 +1,20 @@ +name: 'Docker Load image from tar file' +description: 'Loads a docker image from a tar file' +inputs: + version: + required: true + description: "The docker image version you want to load" + +runs: + using: "composite" + steps: + - uses: actions/download-artifact@v4 + with: + name: ${{ inputs.version }} + path: /tmp/ + + - name: Load image + shell: bash + run: | + docker load < /tmp/${{ inputs.version }} + docker image ls diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 609791e..13a5286 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -46,16 +46,8 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - uses: ./.github/actions/load with: - name: ${{ needs.build.outputs.version }} - path: /tmp/ - - - name: Load image - shell: bash - run: | - docker load < /tmp/${{ needs.build.outputs.version }} - docker image ls - + version: ${{ needs.build.outputs.version }}