diff --git a/.github/workflows/docker.io.monasca.agent-collector.7.0.0.yaml b/.github/workflows/docker.io.monasca.agent-collector.7.0.0.yaml new file mode 100644 index 00000000..d7e6ff45 --- /dev/null +++ b/.github/workflows/docker.io.monasca.agent-collector.7.0.0.yaml @@ -0,0 +1,71 @@ +# +# MIT License +# +# (C) Copyright [2022] Hewlett Packard Enterprise Development LP +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# +name: docker.io/monasca/agent-collector:7.0.0 + +on: + push: + branches: + - main + paths: + - .github/workflows/docker.io.monasca.agent-collector.7.0.0.yaml + - docker.io/monasca/agent-collector/7.0.0/** + pull_request: + branches: + - main + paths: + - .github/workflows/docker.io.monasca.agent-collector.7.0.0.yaml + - docker.io/monasca/agent-collector/7.0.0/** + workflow_dispatch: + schedule: + - cron: '58 22 * * *' + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + env: + CONTEXT_PATH: docker.io/monasca/agent-collector/7.0.0 + DOCKER_REPO: artifactory.algol60.net/csm-docker/stable/docker.io/monasca/agent-collector + DOCKER_TAG: 7.0.0 + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: build-sign-scan + uses: Cray-HPE/github-actions/build-sign-scan@main + with: + # Only push on main builds + docker_push: ${{ github.ref == 'refs/heads/main' }} + context_path: ${{ env.CONTEXT_PATH }} + docker_repo: ${{ env.DOCKER_REPO }} + docker_tag: ${{ env.DOCKER_TAG }} + artifactory_algol60_token: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }} + cosign_gcp_workload_identity_provider: ${{ secrets.COSIGN_GCP_WORKLOAD_IDENTITY_PROVIDER }} + cosign_gcp_service_account: ${{ secrets.COSIGN_GCP_SERVICE_ACCOUNT }} + cosign_key: ${{ secrets.COSIGN_KEY }} + snyk_token: ${{ secrets.SNYK_TOKEN }} + github_sha: $GITHUB_SHA + fail_on_snyk_errors: true diff --git a/docker.io/monasca/agent-collector/7.0.0/Dockerfile b/docker.io/monasca/agent-collector/7.0.0/Dockerfile new file mode 100644 index 00000000..7f52c593 --- /dev/null +++ b/docker.io/monasca/agent-collector/7.0.0/Dockerfile @@ -0,0 +1,29 @@ +# +# MIT License +# +# (C) Copyright [2022] Hewlett Packard Enterprise Development LP +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# +FROM docker.io/monasca/agent-collector:7.0.0 + +RUN apk update && \ + apk add --upgrade apk-tools && \ + apk -U upgrade && \ + rm -rf /var/cache/apk/*