2929
3030jobs :
3131 build-test :
32- runs-on : ubuntu-20 .04
32+ runs-on : ubuntu-24 .04
3333 strategy :
3434 matrix :
3535 python :
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.~
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
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
0 commit comments