From ad4b80d92a653a8263a1d4ff9e99ac1863f2ef96 Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Sun, 12 Feb 2023 14:13:20 +0100 Subject: [PATCH] Upgrade docker image versions --- .github/workflows/branches.yaml | 12 ++++++------ .github/workflows/tag.yaml | 6 +++--- Dockerfile.standalone | 4 ++-- backend/Dockerfile | 2 +- backend/go.mod | 2 +- frontend/Dockerfile | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/branches.yaml b/.github/workflows/branches.yaml index 79cf4d6c..91de4187 100644 --- a/.github/workflows/branches.yaml +++ b/.github/workflows/branches.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: Run Go tests run: | cd backend @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - uses: actions/setup-node@v3 with: node-version: 16 @@ -83,7 +83,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 19 - name: Run tests run: | cd frontend @@ -96,7 +96,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -109,7 +109,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: Run Go tests run: | cd sdk diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 8ba7b436..ff358b79 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go_version: [ '1.19' ] + go_version: [ '1.20' ] steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 @@ -137,7 +137,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: '1.20' - name: Create release run: | @@ -153,4 +153,4 @@ jobs: upload_url: ${{ needs.release.outputs.upload_url }} asset_path: ./backend/authz-${{ matrix.goos }}-${{ matrix.goarch }} asset_name: authz-${{ matrix.goos }}-${{ matrix.goarch }} - asset_content_type: application/octet-stream \ No newline at end of file + asset_content_type: application/octet-stream diff --git a/Dockerfile.standalone b/Dockerfile.standalone index 9ea73fe3..a59b8100 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.17 as backend-builder +FROM golang:1.20-alpine3.17 as backend-builder WORKDIR /project @@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=1 go build -mod vendor -ldflags "-s -w" -o authz ./cmd/ -FROM node:19.4-alpine as frontend-builder +FROM node:19.6-alpine as frontend-builder ARG REACT_APP_API_BASE_URI=http://localhost:8080/v1 ARG REACT_APP_DEMO_ENABLED=false diff --git a/backend/Dockerfile b/backend/Dockerfile index d521febf..544cca6b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine3.17 as builder +FROM golang:1.20-alpine3.17 as builder WORKDIR /project diff --git a/backend/go.mod b/backend/go.mod index 70a02781..5a4e74ab 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -1,6 +1,6 @@ module github.com/eko/authz/backend -go 1.19 +go 1.20 require ( github.com/coreos/go-oidc/v3 v3.5.0 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6b7510bc..0ce6653a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:19.4-alpine as builder +FROM node:19.6-alpine as builder WORKDIR /app