From 0c86872a62645b6ceb0536cc728f6c90d686d68e Mon Sep 17 00:00:00 2001 From: yamatcha Date: Mon, 4 Dec 2023 06:29:25 +0000 Subject: [PATCH] Upgrade actions in CI --- .github/workflows/ci.yaml | 14 +++++++------- .github/workflows/release.yaml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ff73733..8b500e9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,8 +11,8 @@ jobs: name: Validation runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version-file: go.mod - name: Cache Tools @@ -31,13 +31,13 @@ jobs: name: build runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version-file: go.mod - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - run: docker buildx build --load -t moco-agent:dev . test: name: Small Tests @@ -46,8 +46,8 @@ jobs: mysql-version: ["8.0.18", "8.0.25", "8.0.26", "8.0.27", "8.0.28"] runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version-file: go.mod - run: make test MYSQL_VERSION=${{ matrix.mysql-version }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index caa22b9..8389c73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,8 +9,8 @@ jobs: needs: image runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version-file: go.mod - run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make build/moco-agent @@ -28,15 +28,15 @@ jobs: name: Push Container Image runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: linux/amd64,linux/arm64/v8 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -45,7 +45,7 @@ jobs: id: set-tag run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT # Remove "v" prefix. - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64/v8 push: true