-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace old tooling with a modern one
- Do not access services from the internet - Use docker-compose - Do not hack HOME variable - cache image
- Loading branch information
Jean-Louis Fuchs
committed
Dec 25, 2023
1 parent
914c0aa
commit 8d81136
Showing
79 changed files
with
2,272 additions
and
21,024 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Main branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
jobs: | ||
cache: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build container | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: compose | ||
push: true | ||
tags: ghcr.io/adfinis/pyaptly/cache:latest | ||
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha | ||
cache-to: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha,mode=max | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
needs: [cache] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build container | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: compose | ||
push: false | ||
load: true | ||
tags: ghcr.io/adfinis/pyaptly/cache:latest | ||
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha | ||
|
||
- name: Run tests | ||
run: | | ||
echo testing |
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,32 @@ | ||
name: Pull requests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Build container | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: compose | ||
push: false | ||
load: true | ||
tags: ghcr.io/adfinis/pyaptly/cache:latest | ||
cache-from: type=registry,ref=ghcr.io/adfinis/pyaptly/cache:gha | ||
|
||
- name: Run tests | ||
run: | | ||
echo testing |
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 |
---|---|---|
@@ -1,18 +1,2 @@ | ||
/pyaptly.egg-info | ||
*.swp | ||
*.pyc | ||
.python-version | ||
__pycache__ | ||
/.cache | ||
/.hypothesis | ||
/.coverage | ||
/.vagrant | ||
/build | ||
/doc/_build | ||
.hypothesis | ||
/.deps | ||
/.gnupg | ||
/.aptly.conf | ||
/.aptly | ||
/.local | ||
.work |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.