Skip to content

Commit

Permalink
Bump & Fixes (#97)
Browse files Browse the repository at this point in the history
* Bump python packages

* Bump github actions

* Removing pytest-pylint for broken dependencies (and unused)

* Version bump

* Rollback docker/build-push-action to v4 since v5 is broken

* login into dockerhub

* Remove buildx

* Remove buildx

* Fucking docker

* Login to docker to avoid rate limit
  • Loading branch information
mbovo authored Nov 11, 2023
1 parent 8eb98f0 commit 7365e14
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 580 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand All @@ -20,7 +20,7 @@ jobs:
- pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand Down Expand Up @@ -48,21 +48,27 @@ jobs:
env:
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{env.IMAGE_NAME}}
flavor: |
Expand All @@ -74,7 +80,7 @@ jobs:
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: containers/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand All @@ -15,7 +15,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand All @@ -33,7 +33,7 @@ jobs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand All @@ -53,21 +53,27 @@ jobs:
env:
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{env.IMAGE_NAME}}
flavor: |
Expand All @@ -79,7 +85,7 @@ jobs:
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: containers/Dockerfile
push: false
Expand Down
Loading

0 comments on commit 7365e14

Please sign in to comment.