Skip to content

Commit

Permalink
upgrade docker github actions tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Dec 16, 2024
1 parent 618628c commit 4205474
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set env
Expand All @@ -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
Expand All @@ -50,15 +50,15 @@ 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
platforms: linux/amd64
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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.dela
Original file line number Diff line number Diff line change
@@ -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 .
Expand All @@ -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 .
Expand Down

0 comments on commit 4205474

Please sign in to comment.