fix: switch CI from docker to podman for build and push
Some checks failed
ci / secrets (push) Failing after 9s
ci / test (push) Successful in 20s
ci / build (push) Has been skipped

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-21 18:14:28 +01:00
parent 3b5ebbaa2e
commit c3a4b07d3a

View File

@@ -23,7 +23,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- run: | - run: |
docker run --rm \ podman run --rm \
-v "$PWD:/scan:ro" \ -v "$PWD:/scan:ro" \
ghcr.io/gitleaks/gitleaks:latest \ ghcr.io/gitleaks/gitleaks:latest \
detect --source /scan -v detect --source /scan -v
@@ -33,14 +33,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: | - run: echo "$HARBOR_PASS" | podman login harbor.mymx.me -u "$HARBOR_USER" --password-stdin
echo "user length: ${#HARBOR_USER}, pass length: ${#HARBOR_PASS}"
echo "$HARBOR_PASS" | docker login harbor.mymx.me -u "$HARBOR_USER" --password-stdin
env: env:
HARBOR_USER: ${{ secrets.HARBOR_USER }} HARBOR_USER: ${{ secrets.HARBOR_USER }}
HARBOR_PASS: ${{ secrets.HARBOR_PASS }} HARBOR_PASS: ${{ secrets.HARBOR_PASS }}
- run: | - run: podman build -t harbor.mymx.me/s5p/s5p:latest -f Containerfile .
docker build \ - run: podman push harbor.mymx.me/s5p/s5p:latest
-t harbor.mymx.me/s5p/s5p:latest \
-f Containerfile .
- run: docker push harbor.mymx.me/s5p/s5p:latest