Skip to content

Commit

Permalink
Update workflows (#65)
Browse files Browse the repository at this point in the history
* Update build.yml

* Update docker-push.yml

* Update generate-manifest.yml

* Update publish-helm.yml
  • Loading branch information
Pavan-SAP committed Jun 7, 2024
1 parent 406096d commit 87626c0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: go test -v -cover -coverprofile=coverage.out ./...

- name: Upload Test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-coverage
path: coverage.out
Expand All @@ -57,7 +57,7 @@ jobs:
fetch-depth: 0

- name: Download Test results
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-coverage

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -43,14 +43,14 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: extract-metadata
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ steps.prepare-repository-name.outputs.repository }}
tags: |
type=semver,pattern={{version}}
- name: Build and push docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: Dockerfile
platforms: linux/amd64,linux/arm64
Expand All @@ -70,4 +70,4 @@ jobs:
- name: Print Outputs
run: |
echo "Tags: ${{ steps.extract-metadata.outputs.tags }}"
echo "Labels: ${{ steps.extract-metadata.outputs.labels }}"
echo "Labels: ${{ steps.extract-metadata.outputs.labels }}"
4 changes: 2 additions & 2 deletions .github/workflows/generate-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get version and upload URL
id: get_version_upload_url
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
-H "Authorization: Bearer ${{ github.token }}" \
-H "Content-Type: $(file -b --mime-type $file)" \
--data-binary @$file \
"$upload_url?name=$(basename $file)"
"$upload_url?name=$(basename $file)"
14 changes: 7 additions & 7 deletions .github/workflows/publish-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: azure/setup-helm@v3
- uses: azure/setup-helm@v4
with:
version: ${{ env.HELM_VERSION }}

Expand Down Expand Up @@ -69,12 +69,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: website
path: website
Expand All @@ -85,7 +85,7 @@ jobs:
version: ${{ env.HELM_VERSION }}

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5

- name: Create package
run: |
Expand Down Expand Up @@ -128,9 +128,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: azure/setup-helm@v3
- uses: azure/setup-helm@v4
with:
version: ${{ env.HELM_VERSION }}

Expand Down

0 comments on commit 87626c0

Please sign in to comment.