Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide authored Apr 3, 2024
1 parent 8e815a2 commit e02e39c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
- name: run docker
run: |
docker run --rm -v ${{ github.workspace }}:/package -e GBP_REPO=${{ github.event.inputs.release_repo}} -e GBP_TAG=${{ github.event.inputs.release_tag}} lcas.lincoln.ac.uk/lcas/docker-dpkg-build:master ./run.sh
- uses: actions/upload-artifact@v3
with:
name: debs
path: |
${{ github.workspace }}/*.deb
${{ github.workspace }}/*.ddeb
${{ github.workspace }}/*.tar.?z
${{ github.workspace }}/*.changes
- name: "upload to Aptly repo and make available at staging"
run: |
APTLY_API="https://lcas.lincoln.ac.uk/apt/api"
Expand All @@ -42,6 +51,7 @@ jobs:
files=`find ${{ github.workspace }}/ -name "*.deb" -o -name "*.ddeb" -o -name "*.udeb" -o -name "*.dsc" -o -name "*.tar.?z" -maxdepth 1`
for f in $files; do
echo "Uploading $f..."
ls -l $f
curl -fsS -X POST -F "file=@$f" -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/files/$folder
done
echo "updating repo with files in $folder"
Expand All @@ -50,12 +60,4 @@ jobs:
curl -X PUT -H 'Content-Type: application/json' --data "{\"ForceOverwrite\": true, \"SourceKind\": \"local\", \"Sources\": [{\"Name\": \"$repo\"}]}" -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/publish/staging/jammy
- uses: actions/upload-artifact@v3
with:
name: debs
path: |
${{ github.workspace }}/*.deb
${{ github.workspace }}/*.ddeb
${{ github.workspace }}/*.tar.?z
${{ github.workspace }}/*.changes
- uses: AutoModality/action-clean@v1

0 comments on commit e02e39c

Please sign in to comment.