diff --git a/.github/workflows/release-container-helperimage.yaml b/.github/workflows/release-container-helperimage.yaml deleted file mode 100644 index 8aa3be07..00000000 --- a/.github/workflows/release-container-helperimage.yaml +++ /dev/null @@ -1,78 +0,0 @@ -on: - push: - branches: - - master - paths: - - images/helper/version.go -name: Publish Container Helper Image Release -jobs: - build-and-publish: - name: Build and Publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set version information - run: | - echo "RELEASE_VERSION=$(grep "Version =" images/helper/version.go | awk -F'"' '{print $2}')" >> $GITHUB_ENV - echo "RELEASE_COMMIT=$(git rev-parse --verify HEAD)" >> $GITHUB_ENV - echo "RELEASE_DATE=$(date --iso-8601=seconds)" >> $GITHUB_ENV - - name: copy license to helper image dir - run: cp LICENSE images/helper/ - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build but don't push - uses: docker/build-push-action@v5 - with: - context: images/helper - # Because we use a container scanner pre-push we don't specify platform here so only the runner platform builds - # platforms: linux/amd64,linux/arm64 - load: true - tags: ${{ github.repository_owner }}/humio-operator-helper:${{ env.RELEASE_VERSION }} - labels: | - version=${{ env.RELEASE_VERSION }} - release=${{ github.run_id }} - build-args: | - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - RELEASE_COMMIT=${{ env.RELEASE_COMMIT }} - RELEASE_DATE=${{ env.RELEASE_DATE }} - cache-to: type=local,type=registry,type=gha - - name: Set up Python - uses: actions/setup-python@v5 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install six - python -m pip install --upgrade retry - pip install retry - - name: CrowdStrike Container Image Scan Operator Helper - if: github.repository_owner == 'humio' - uses: crowdstrike/container-image-scan-action@v1 - with: - falcon_client_id: 1cd30708cb31442f85a6eec83279fe7b - container_repository: ${{ github.repository_owner }}/humio-operator-helper - container_tag: ${{ env.RELEASE_VERSION }} - env: - FALCON_CLIENT_SECRET: "${{ secrets.FALCON_CLIENT_SECRET }}" - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: images/helper - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ github.repository_owner }}/humio-operator-helper:${{ env.RELEASE_VERSION }} - labels: | - version=${{ env.RELEASE_VERSION }} - release=${{ github.run_id }} - build-args: | - RELEASE_VERSION=${{ env.RELEASE_VERSION }} - RELEASE_COMMIT=${{ env.RELEASE_COMMIT }} - RELEASE_DATE=${{ env.RELEASE_DATE }} - cache-from: type=gha, mode=max - cache-to: type=gha diff --git a/README.md b/README.md index 9826ab0b..5b23bc72 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,6 @@ make run-e2e-tests-local-kind In order to publish new release of the different components, we have the following procedures we can follow: - Operator container image: Bump the version defined in [VERSION](VERSION). -- Helper container image: Bump the version defined in [images/helper/version.go](images/helper/version.go). - Helm chart: Bump the version defined in [charts/humio-operator/Chart.yaml](charts/humio-operator/Chart.yaml). Note: For now, we only release one component at a time due to how our workflows in GitHub Actions. diff --git a/images/helper/version.go b/images/helper/version.go deleted file mode 100644 index 8136c441..00000000 --- a/images/helper/version.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2020 Humio https://humio.com - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package main - -var ( - Version = "0.5.0" -)