Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigot committed Dec 2, 2024
1 parent b8d16bf commit 8942116
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,11 @@ runs:
name: ${{ inputs.distribution }}
path: ./${{ inputs.distribution }}
- name: Make artifact descriptor container
env:
DISTRIB: ${{ inputs.distribution }}
ARTIFACT: ${{ steps.artifact.outputs.artifact-url }}
OUTPUT: ${{ steps.artifact.outputs.artifact-url }}
shell: bash
run: |
echo artifact-url: "${{ steps.artifact.outputs.artifact-url }}"
echo ARTIFACT: "${ARTIFACT}"
echo artifact.output: "${{ steps.artifact.outputs }}"
echo OUTPUT: "${OUTPUT}"
echo "${ARTIFACT}" > artifact.url
tar -c artifact.url | docker import - ghcr.io/pdidev/pkgs/lastbuild:${DISTRIB}
docker push ghcr.io/pdidev/pkgs/lastbuild:${DISTRIB}
echo "${{ steps.artifact.outputs.artifact-url }}" > artifact.url
tar -c artifact.url | docker import - ghcr.io/pdidev/pkgs/lastbuild:${{ inputs.distribution }}
docker push ghcr.io/pdidev/pkgs/lastbuild:${{ inputs.distribution }}
- name: Aggregate sources
shell: bash
run: |
Expand All @@ -78,7 +70,7 @@ runs:
CID="$(docker create ghcr.io/pdidev/pkgs/lastbuild:debian /bin/bash)"
docker cp "${CID}:artifact.url" "../${DISTRIB}.url"
echo curl "$(cat ../${DISTRIB}.url)"
curl "$(cat ../${DISTRIB}.url)" | tar -x
curl "$(cat ../${DISTRIB}.url)" | unzip -
done
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3

0 comments on commit 8942116

Please sign in to comment.