Skip to content

Commit

Permalink
feat: replace old tooling with a modern one
Browse files Browse the repository at this point in the history
- 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 81620f8
Show file tree
Hide file tree
Showing 79 changed files with 2,249 additions and 21,024 deletions.
21 changes: 0 additions & 21 deletions .aptly-bin/LICENSE

This file was deleted.

106 changes: 0 additions & 106 deletions .aptly-bin/README.rst

This file was deleted.

10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/main.yml
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
32 changes: 32 additions & 0 deletions .github/workflows/pull-requests.yml
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
16 changes: 0 additions & 16 deletions .gitignore
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
28 changes: 0 additions & 28 deletions .gitlab-ci.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

3 changes: 0 additions & 3 deletions .requirements.txt

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion HOW_TO_RELEASE.rst

This file was deleted.

6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
Loading

0 comments on commit 81620f8

Please sign in to comment.