From a7e2e971822ff6672e6252cba0489535a172beab Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Sun, 29 Dec 2024 00:28:23 -0800 Subject: [PATCH] Update github action modules (#2237) /cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com> Signed-off-by: Tamal Saha --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/release-tracker.yml | 2 +- .github/workflows/release.yml | 13 ++----------- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f00ba6a4..1da3bbd35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,20 +13,20 @@ jobs: name: Build runs-on: ubuntu-20.04 steps: - - name: Set up Go 1.22 - uses: actions/setup-go@v1 + - name: Set up Go 1.23 + uses: actions/setup-go@v5 with: go-version: '1.22' id: go - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up QEMU id: 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: Run checks run: | @@ -34,9 +34,9 @@ jobs: - name: Build env: - REGISTRY: appscodeci - DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + REGISTRY: ghcr.io/appscodeci + DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} USERNAME: 1gtm run: | - docker login --username ${USERNAME} --password ${DOCKER_TOKEN} + docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN} make push diff --git a/.github/workflows/release-tracker.yml b/.github/workflows/release-tracker.yml index e2e10fc39..a9848e99a 100644 --- a/.github/workflows/release-tracker.yml +++ b/.github/workflows/release-tracker.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Prepare git env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2757a1c5..36030cb67 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,10 +25,10 @@ jobs: - name: Set up QEMU id: 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: Publish to GitHub Container Registry env: @@ -39,12 +39,3 @@ jobs: run: | docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN} make release - - - name: Publish to Docker Registry - env: - DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - USERNAME: 1gtm - APPSCODE_ENV: prod - run: | - docker login --username ${USERNAME} --password ${DOCKER_TOKEN} - make release