Skip to content

Commit

Permalink
Always build CI image locally
Browse files Browse the repository at this point in the history
It seems there is a problem with the repository maintained under
the pifpaf GitHub account. This is a short-term workaround and drops
dependency on the registry and makes the image always built during
CI run.
  • Loading branch information
kajinamit committed Feb 12, 2024
1 parent 35af0d7 commit 409baa9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/pifpaf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sudo chown -R 1000:1000 $GITHUB_WORKSPACE
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
ci_image:
- 'Dockerfile'
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: steps.changes.outputs.ci_image == 'false'
- run: docker pull ghcr.io/pifpaf/ci:latest
if: steps.changes.outputs.ci_image == 'false'
- uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -45,6 +31,5 @@ jobs:
KAFKA_VERSION=${{ env.KAFKA_VERSION }}
ETCD_VERSION=${{ env.ETCD_VERSION }}
tags: ghcr.io/pifpaf/ci:latest
if: steps.changes.outputs.ci_image == 'true'
- name: Run tox
run: docker run --rm -v ${{ github.workspace }}:/home/pifpaf/pifpaf ghcr.io/pifpaf/ci:latest tox -e ${{ matrix.env }}

0 comments on commit 409baa9

Please sign in to comment.