Skip to content

Commit 4205474

Browse files
committed
upgrade docker github actions tools
1 parent 618628c commit 4205474

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build-docker.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
- name: Set env
@@ -28,17 +28,17 @@ jobs:
2828
echo "REACT_APP_BUILD_TIME=$(date)" >> $GITHUB_ENV
2929
- name: Set up Docker Buildx
3030
id: buildx
31-
uses: docker/setup-buildx-action@v1
31+
uses: docker/setup-buildx-action@v3
3232
- name: Login to GHCR
3333
if: ${{ env.push == 'true' }}
34-
uses: docker/login-action@v1
34+
uses: docker/login-action@v3
3535
with:
3636
registry: ghcr.io
3737
username: ${{ github.repository_owner }}
3838
password: ${{ secrets.GITHUB_TOKEN }}
3939

4040
- name: Build Frontend
41-
uses: docker/build-push-action@v2
41+
uses: docker/build-push-action@v6
4242
with:
4343
context: .
4444
file: Dockerfiles/Dockerfile.frontend
@@ -50,15 +50,15 @@ jobs:
5050
push: ${{ env.push }}
5151
tags: ghcr.io/dedis/d-voting-frontend:${{ env.DockerTag }}
5252
- name: Build Backend
53-
uses: docker/build-push-action@v2
53+
uses: docker/build-push-action@v6
5454
with:
5555
context: .
5656
file: Dockerfiles/Dockerfile.backend
5757
platforms: linux/amd64
5858
push: ${{ env.push }}
5959
tags: ghcr.io/dedis/d-voting-backend:${{ env.DockerTag }}
6060
- name: Build D-Voting
61-
uses: docker/build-push-action@v2
61+
uses: docker/build-push-action@v6
6262
with:
6363
context: .
6464
file: Dockerfiles/Dockerfile.dela

Dockerfiles/Dockerfile.dela

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20.6-bookworm AS base
1+
FROM golang:1.23-bookworm AS base
22
RUN apt-get update -y && apt-get install -y git
33
WORKDIR /go/d-voting
44
COPY go.mod .
@@ -11,7 +11,7 @@ RUN --mount=type=cache,target="/root/.cache/go-build" go install
1111
# make sure we're using the same head as d-voting
1212
RUN --mount=type=cache,target="/root/.cache/go-build" cd $( go list -f '{{.Dir}}' go.dedis.ch/dela )/cli/crypto && go install
1313

14-
FROM golang:1.20.6-bookworm AS build
14+
FROM golang:1.23-bookworm AS build
1515
WORKDIR /usr/local/bin
1616
COPY --from=base /go/bin/crypto .
1717
COPY --from=base /go/bin/dvoting .

0 commit comments

Comments
 (0)