Skip to content

Commit

Permalink
Merge pull request #423 from TeskaLabs/patch/v24.29-fix-cicd
Browse files Browse the repository at this point in the history
Upgrade CI/CD action versions
  • Loading branch information
byewokko authored Sep 24, 2024
2 parents 98739f3 + 500cc26 commit 7886fda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
python-version: ["3.11", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -32,11 +32,11 @@ jobs:
python -m pip install --upgrade pip
pip install flake8
pip install git+https://github.com/TeskaLabs/asab.git
- name: Lint with flake8
run: |
flake8 seacatauth seacatauth.py
test:
needs: flake8
runs-on: ubuntu-latest
Expand All @@ -45,10 +45,10 @@ jobs:
python-version: ["3.11", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -61,7 +61,7 @@ jobs:
pip install argon2
pip install jwcrypto
pip install git+https://github.com/TeskaLabs/asab.git#egg=asab[encryption]
- name: Test with unittest
run: |
python3 -m unittest test
Expand All @@ -72,40 +72,40 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Docker Metadata action
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
id: meta
with:
images: teskalabs/seacat-auth
tags: |
type=raw,value=latest
type=ref,event=tag
type=semver,pattern={{raw}}
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Create Docker Starter
uses: papeloto/action-zip@v1
uses: vimtor/action-zip@v1.2
with:
files: example/docker
dest: seacat-auth-docker-starter.zip

- name: Upload Docker Starter
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: seacat-auth-docker-starter
path: ${{ github.workspace }}/seacat-auth-docker-starter.zip
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## v24.29

### Pre-releases
- v24.29.1
- ~~v24.29~~
- v24.29-beta2
- v24.29-beta
- v24.29-alpha5
Expand Down

0 comments on commit 7886fda

Please sign in to comment.