From 7261159d5d31e2603815c66b1a389a9a2f78de72 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 13 Nov 2024 11:54:46 +0100 Subject: [PATCH] fix: fix ci (#38) --- .github/workflows/docker.yml | 6 +++--- .github/workflows/release.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9dbc978..698fbe8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,14 +21,14 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v3 with: # list of Docker images to use as base name for tags images: | ghcr.io/${{ github.repository }} - name: Login to Registry - uses: docker/login-action@v3 + uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -39,7 +39,7 @@ jobs: run: echo ::set-output name=tag::${GITHUB_REF##*/} - name: Build and push Docker image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v2.3.0 with: push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b834e48..04e5396 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,11 @@ jobs: with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v2 with: go-version: 1.23.3 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v6 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest @@ -41,19 +41,19 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v3 with: # list of Docker images to use as base name for tags images: flagshipio/decision-api - name: Login to DockerHub - uses: docker/login-action@v3 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v2.3.0 with: push: true tags: ${{ steps.meta.outputs.tags }}