Skip to content

Commit

Permalink
Fix assorted issues in the Docker build process. (netdata#17312)
Browse files Browse the repository at this point in the history
* Fix assorted issues in the Docker build process.

* Correctly add stable tag to tag list.
  • Loading branch information
Ferroin authored Apr 2, 2024
1 parent 926956e commit 874b556
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/gen-docker-tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@
)
])

tags = tags + tuple([f'{r}:stable' for r in REPOS])

print(','.join(tags))
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ jobs:
- name: Create and Push Manifest
id: manifest
if: github.repository == 'netdata/netdata'
run: docker buildx imagetools create "$(.github/scripts/gen-docker-imagetool-args.py /tmp/digests '' "${{ needs.gen-tags.outputs.tags }}")"
run: docker buildx imagetools create $(.github/scripts/gen-docker-imagetool-args.py /tmp/digests '' "${{ needs.gen-tags.outputs.tags }}")

Check failure on line 336 in .github/workflows/docker.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck] Raw Output: .github/workflows/docker.yml:336:9: shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck]
- name: Failure Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down Expand Up @@ -489,7 +489,7 @@ jobs:
- name: Create and Push Manifest
id: manifest
if: github.repository == 'netdata/netdata'
run: docker buildx imagetools create "$(.github/scripts/gen-docker-imagetool-args.py /tmp/digests 'quay.io' "${{ needs.gen-tags.outputs.tags }}")"
run: docker buildx imagetools create $(.github/scripts/gen-docker-imagetool-args.py /tmp/digests 'quay.io' "${{ needs.gen-tags.outputs.tags }}")

Check failure on line 492 in .github/workflows/docker.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck] Raw Output: .github/workflows/docker.yml:492:9: shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck]
- name: Failure Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down Expand Up @@ -645,7 +645,7 @@ jobs:
- name: Create and Push Manifest
id: manifest
if: github.repository == 'netdata/netdata'
run: docker buildx imagetools create "$(.github/scripts/gen-docker-imagetool-args.py /tmp/digests 'ghcr.io' "${{ needs.gen-tags.outputs.tags }}")"
run: docker buildx imagetools create $(.github/scripts/gen-docker-imagetool-args.py /tmp/digests 'ghcr.io' "${{ needs.gen-tags.outputs.tags }}")

Check failure on line 648 in .github/workflows/docker.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck] Raw Output: .github/workflows/docker.yml:648:9: shellcheck reported issue in this script: SC2046:warning:1:33: Quote this to prevent word splitting [shellcheck]
- name: Failure Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down Expand Up @@ -690,7 +690,7 @@ jobs:
repo: netdata/helmchart
workflow: Agent Version PR
ref: refs/heads/master
inputs: '{"agent_version": "${{ inputs.version }}"}'
inputs: '{"agent_version": "v${{ inputs.version }}"}'
- name: Trigger MSI build
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != 'nightly' && github.repository == 'netdata/netdata'
id: trigger-msi
Expand Down

0 comments on commit 874b556

Please sign in to comment.