Skip to content

Commit 2712f13

Browse files
Merge pull request #152 from Tecnativa/add-api151-to-readme
[ADD] v1.51 version to README.md and Modernice CI
2 parents 0e8d660 + 16b9e72 commit 2712f13

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929

3030
jobs:
3131
build-test:
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-24.04
3333
strategy:
3434
matrix:
3535
python:
@@ -47,7 +47,7 @@ jobs:
4747
echo "CACHE=${{ secrets.CACHE_DATE }} ${{ runner.os }} $(python -VV |
4848
sha256sum | cut -d' ' -f1) ${{ hashFiles('pyproject.toml') }} ${{
4949
hashFiles('poetry.lock') }}" >> $GITHUB_ENV
50-
- uses: actions/cache@v2
50+
- uses: actions/cache@v4
5151
with:
5252
path: |
5353
.cache.~
@@ -61,7 +61,7 @@ jobs:
6161
# Run tests
6262
- run: poetry run pytest --prebuild
6363
build-push:
64-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-24.04
6565
services:
6666
registry:
6767
image: registry:2
@@ -73,24 +73,24 @@ jobs:
7373
PUSH: ${{ toJSON(github.event_name != 'pull_request') }}
7474
steps:
7575
# Set up Docker Environment
76-
- uses: actions/checkout@v2
77-
- uses: actions/cache@v2
76+
- uses: actions/checkout@v4
77+
- uses: actions/cache@v4
7878
with:
7979
path: |
8080
/tmp/.buildx-cache
8181
key: buildx|${{ secrets.CACHE_DATE }}|${{ runner.os }}
8282
- name: Set up QEMU
83-
uses: docker/setup-qemu-action@v1
83+
uses: docker/setup-qemu-action@v3
8484
- name: Set up Docker Buildx
8585
id: buildx
86-
uses: docker/setup-buildx-action@v1
86+
uses: docker/setup-buildx-action@v3
8787
with:
8888
driver-opts: network=host
8989
install: true
9090
# Build and push
9191
- name: Docker meta for local images
9292
id: docker_meta_local
93-
uses: crazy-max/ghaction-docker-meta@v1
93+
uses: crazy-max/ghaction-docker-meta@v4
9494
with:
9595
images: localhost:5000/${{ env.DOCKER_IMAGE_NAME }}
9696
tag-edge: true
@@ -99,7 +99,7 @@ jobs:
9999
{{major}}
100100
{{major}}.{{minor}}
101101
- name: Build and push to local (test) registry
102-
uses: docker/build-push-action@v2
102+
uses: docker/build-push-action@v4
103103
with:
104104
context: .
105105
file: ./Dockerfile
@@ -121,21 +121,21 @@ jobs:
121121
# Next jobs only happen outside of pull requests and on main branches
122122
- name: Login to DockerHub
123123
if: ${{ fromJSON(env.PUSH) }}
124-
uses: docker/login-action@v1
124+
uses: docker/login-action@v3
125125
with:
126126
username: ${{ secrets.DOCKERHUB_LOGIN }}
127127
password: ${{ secrets.DOCKERHUB_TOKEN }}
128128
- name: Login to GitHub Container Registry
129129
if: ${{ fromJSON(env.PUSH) }}
130-
uses: docker/login-action@v1
130+
uses: docker/login-action@v3
131131
with:
132132
registry: ghcr.io
133133
username: ${{ secrets.BOT_LOGIN }}
134134
password: ${{ secrets.BOT_TOKEN }}
135135
- name: Docker meta for public images
136136
if: ${{ fromJSON(env.PUSH) }}
137137
id: docker_meta_public
138-
uses: crazy-max/ghaction-docker-meta@v1
138+
uses: crazy-max/ghaction-docker-meta@v4
139139
with:
140140
images: |
141141
ghcr.io/${{ env.DOCKER_IMAGE_NAME }}
@@ -147,7 +147,7 @@ jobs:
147147
{{major}}.{{minor}}
148148
- name: Build and push to public registry(s)
149149
if: ${{ fromJSON(env.PUSH) }}
150-
uses: docker/build-push-action@v2
150+
uses: docker/build-push-action@v4
151151
with:
152152
context: .
153153
file: ./Dockerfile

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-python@v2
16-
- uses: pre-commit/action@v2.0.0
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v4
16+
- uses: pre-commit/action@v3.0.1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ info, notice, warning, err, crit, alert and emerg.
206206
- [1.29](https://docs.docker.com/engine/api/v1.29/)
207207
- [1.30](https://docs.docker.com/engine/api/v1.30/)
208208
- [1.37](https://docs.docker.com/engine/api/v1.37/)
209+
- [1.51](https://docs.docker.com/engine/api/v1.51/)
209210

210211
## Image tags
211212

0 commit comments

Comments
 (0)