From a392a4926ffade59d10ff2bf7988f7003191bb71 Mon Sep 17 00:00:00 2001 From: Benny Date: Fri, 23 Feb 2024 20:04:34 +0100 Subject: [PATCH] use go 1.22, use new actions --- .github/workflows/builder.yaml | 20 ++++++++++---------- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yaml | 6 +++--- Dockerfile | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/builder.yaml b/.github/workflows/builder.yaml index 45d8281..04d441c 100644 --- a/.github/workflows/builder.yaml +++ b/.github/workflows/builder.yaml @@ -9,18 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -28,13 +28,13 @@ jobs: ${{ runner.os }}-buildx- - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -42,18 +42,18 @@ jobs: - name: Lower case for Docker Hub id: dh_string - uses: ASzc/change-string-case-action@v1 + uses: ASzc/change-string-case-action@v6 with: string: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} - name: Lower case for ghcr id: ghcr_string - uses: ASzc/change-string-case-action@v1 + uses: ASzc/change-string-case-action@v6 with: string: ${{ github.event.repository.full_name }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 @@ -68,4 +68,4 @@ jobs: - name: Move cache run: | rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache \ No newline at end of file + mv /tmp/.buildx-cache-new /tmp/.buildx-cache diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fe74c0f..f4772cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v2 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1bcc148..1c327c5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Install Go uses: actions/setup-go@v2 @@ -30,4 +30,4 @@ jobs: uses: softprops/action-gh-release@v1 with: name: "Internet Archive: Wayback Machine bot" - files: builds/* \ No newline at end of file + files: builds/* diff --git a/Dockerfile b/Dockerfile index 792aedd..dc7835d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.0-alpine as builder +FROM golang:1.22-alpine as builder RUN apk update && apk add --no-cache make ca-certificates tzdata && mkdir /build COPY go.mod /build