-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gets the CI working with Ubuntu 22.04 (Jammy) inside a docker container that runs on ubuntu-latest.
- Loading branch information
1 parent
da5901d
commit 55ebc7d
Showing
5 changed files
with
99 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Pifpaf CI Image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'Dockerfile' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
tags: ghcr.io/pifpaf/ci:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Pifpaf | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
INFLUXDB_VERSION: "0.13.0" | ||
SCALA_VERSION: "2.12" | ||
KAFKA_VERSION: "2.6.0" | ||
ETCD_VERSION: "3.4.13" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
env: | ||
- py310 | ||
- pep8 | ||
- build | ||
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: . | ||
push: false | ||
build-args: | | ||
INFLUXDB_VERSION=${{ env.INFLUXDB_VERSION }} | ||
SCALA_VERSION=${{ env.SCALA_VERSION }} | ||
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 }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters