diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 08b3739c..85a4b841 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set env @@ -28,17 +28,17 @@ jobs: echo "REACT_APP_BUILD_TIME=$(date)" >> $GITHUB_ENV - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to GHCR if: ${{ env.push == 'true' }} - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build Frontend - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: Dockerfiles/Dockerfile.frontend @@ -50,7 +50,7 @@ jobs: push: ${{ env.push }} tags: ghcr.io/dedis/d-voting-frontend:${{ env.DockerTag }} - name: Build Backend - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: Dockerfiles/Dockerfile.backend @@ -58,7 +58,7 @@ jobs: push: ${{ env.push }} tags: ghcr.io/dedis/d-voting-backend:${{ env.DockerTag }} - name: Build D-Voting - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . file: Dockerfiles/Dockerfile.dela diff --git a/Dockerfiles/Dockerfile.dela b/Dockerfiles/Dockerfile.dela index 5aaeb0d7..04e899c6 100644 --- a/Dockerfiles/Dockerfile.dela +++ b/Dockerfiles/Dockerfile.dela @@ -1,4 +1,4 @@ -FROM golang:1.20.6-bookworm AS base +FROM golang:1.23-bookworm AS base RUN apt-get update -y && apt-get install -y git WORKDIR /go/d-voting COPY go.mod . @@ -11,7 +11,7 @@ RUN --mount=type=cache,target="/root/.cache/go-build" go install # make sure we're using the same head as d-voting RUN --mount=type=cache,target="/root/.cache/go-build" cd $( go list -f '{{.Dir}}' go.dedis.ch/dela )/cli/crypto && go install -FROM golang:1.20.6-bookworm AS build +FROM golang:1.23-bookworm AS build WORKDIR /usr/local/bin COPY --from=base /go/bin/crypto . COPY --from=base /go/bin/dvoting .