Skip to content

Commit

Permalink
Upgrade artifacts to v4 from v3
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Apr 22, 2024
1 parent 03540a1 commit 2ff260e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_cross-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/step_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ff260e

Please sign in to comment.