From 2ff260ef49bd885dbae75ad202b780e2a8bea2e0 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Mon, 22 Apr 2024 10:50:30 +0200 Subject: [PATCH] Upgrade artifacts to v4 from v3 Signed-off-by: Mahendra Paipuri --- .github/workflows/release.yml | 2 +- .github/workflows/step_build.yml | 2 +- .github/workflows/step_cross-build.yml | 2 +- .github/workflows/step_docker.yml | 10 +++++++--- .github/workflows/step_packaging.yml | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a893225..9e4cdd60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,7 +55,7 @@ jobs: go mod download - name: Download release artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-artifacts path: .tarballs diff --git a/.github/workflows/step_build.yml b/.github/workflows/step_build.yml index 781416a0..70980eac 100644 --- a/.github/workflows/step_build.yml +++ b/.github/workflows/step_build.yml @@ -33,7 +33,7 @@ jobs: promu --config .promu-cgo.yml crossbuild -v -p linux/amd64 -p linux/arm64 - name: Upload go build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-go-artifacts path: | diff --git a/.github/workflows/step_cross-build.yml b/.github/workflows/step_cross-build.yml index 72d29e6d..35bcca01 100644 --- a/.github/workflows/step_cross-build.yml +++ b/.github/workflows/step_cross-build.yml @@ -42,7 +42,7 @@ jobs: promu checksum .tarballs - name: Upload go build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-go-artifacts path: | diff --git a/.github/workflows/step_docker.yml b/.github/workflows/step_docker.yml index b666cb15..a430f84f 100644 --- a/.github/workflows/step_docker.yml +++ b/.github/workflows/step_docker.yml @@ -36,7 +36,7 @@ jobs: fi - name: Download go build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-go-artifacts @@ -47,16 +47,20 @@ jobs: - name: Build container images run: | + echo ${{ inputs.registry }}/${{ inputs.organization }} + echo "${{ inputs.registry }}/${{ inputs.organization }}" + echo ${{ inputs.registry }} + echo ${{ inputs.organization }} make docker DOCKER_IMAGE_TAG=${{ steps.target_branch.outputs.name }} DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }} docker images shell: bash - name: Test container images - run: make docker-test DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }} + run: make test-docker DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }} shell: bash - name: Publish image for main branch - if: github.ref == 'refs/heads/main' + # if: github.ref == 'refs/heads/main' run: | echo ${{ secrets.password }} | docker login -u ${{ secrets.login }} --password-stdin ${{ inputs.registry }} make docker-publish DOCKER_IMAGE_TAG=${{ steps.target_branch.outputs.name }} DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }} diff --git a/.github/workflows/step_packaging.yml b/.github/workflows/step_packaging.yml index da447df1..a6f827d7 100644 --- a/.github/workflows/step_packaging.yml +++ b/.github/workflows/step_packaging.yml @@ -21,7 +21,7 @@ jobs: run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest - name: Download go build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-go-artifacts