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 be6ea47 commit 1546813
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
18 changes: 0 additions & 18 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ runs:
steps:
- uses: docker/login-action@v3
with: { registry: "ghcr.io", username: "${{ github.actor }}", password: "${{ inputs.GITHUB_TOKEN }}" }
- uses: docker/setup-buildx-action@v3
- name: Checkout builder script
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -59,20 +58,3 @@ runs:
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: |
mkdir _site
cp README.tpl/index.html _site
cd _site
for DISTRIB in debian fedora ubuntu
do
CID="$(docker create ghcr.io/pdidev/pkgs/lastbuild:debian /bin/bash)"
docker cp "${CID}:artifact.url" "../${DISTRIB}.url"
echo curl "$(cat ../${DISTRIB}.url)"
wget "$(cat ../${DISTRIB}.url)"
ls
done
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
41 changes: 32 additions & 9 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,38 @@ jobs:
matrix:
distrib: [ debian, fedora, ubuntu ]
steps:
- name: Checkout packages
uses: actions/checkout@v4
with:
ref: "stable"
- uses: pdidev/pkgs/.github/actions/deploy@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
KEY_PASSPHRASE: "${{ secrets.KEY_PASSPHRASE }}"
distribution: "${{ matrix.distrib }}"
- name: Checkout packages
uses: actions/checkout@v4
with: { ref: "stable" }
- uses: pdidev/pkgs/.github/actions/deploy@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
KEY_PASSPHRASE: "${{ secrets.KEY_PASSPHRASE }}"
distribution: "${{ matrix.distrib }}"
aggregate:
runs-on: ubuntu-20.04
steps:
- name: Checkout packages
uses: actions/checkout@v4
with: { ref: "stable" }
- name: Aggregate sources
shell: bash
run: |
mkdir _site
cp README.tpl/index.html _site
cd _site
for DISTRIB in debian fedora ubuntu
do
CID="$(docker create ghcr.io/pdidev/pkgs/lastbuild:debian /bin/bash)"
docker cp "${CID}:artifact.url" "../${DISTRIB}.url"
echo curl "$(cat ../${DISTRIB}.url)"
wget "$(cat ../${DISTRIB}.url)"
curl -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ${archive_download_url}
ls
ls -R ${DISTRIB}
done
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
publish:
needs: build
permissions:
Expand Down

0 comments on commit 1546813

Please sign in to comment.