From ef40618af7cc945500a5c5619f287b06b2aa2344 Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Mon, 24 Oct 2022 17:28:39 +0200 Subject: [PATCH] Update actions versions --- .github/workflows/build.yml | 6 +++--- .github/workflows/release-pr.yml | 7 ++++--- .github/workflows/release.yml | 36 ++++++++++++++++---------------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 827f1be..5a54b5b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: ^1.18 + go-version: ^1.19 - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build run: go build -v ./... diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index e4340c6..63417ee 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -14,9 +14,10 @@ jobs: outputs: result: ${{ steps.is_release_branch_without_pr.outputs.result }} steps: - - id: is_release_branch_without_pr + - + id: is_release_branch_without_pr name: Find matching PR - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -42,7 +43,7 @@ jobs: name: Create Release Pull Request runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Parse release version id: get_version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4f968c..7a5205f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,15 +11,14 @@ jobs: env: DOCKER_CLI_EXPERIMENTAL: "enabled" steps: - - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Docker meta + + - name: Docker meta id: meta - uses: crazy-max/ghaction-docker-meta@v2 + uses: docker/metadata-action@v4 with: images: | 1password/onepassword-operator @@ -28,24 +27,25 @@ jobs: tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + - name: Get the version from tag id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Docker Login - uses: docker/login-action@v1 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Docker Login + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 + + - name: Build and push + uses: docker/build-push-action@v3 with: context: . file: Dockerfile