diff --git a/.github/workflows/docker-build-develop.yaml b/.github/workflows/docker-build-develop.yaml index acc5fb89..a0712052 100644 --- a/.github/workflows/docker-build-develop.yaml +++ b/.github/workflows/docker-build-develop.yaml @@ -2,7 +2,7 @@ name: Develop build on: push: branches: - - develop + - main env: ALPINE_IMAGE: alpine:3.18.3 diff --git a/.github/workflows/docker-build-release.yaml b/.github/workflows/docker-build-release.yaml deleted file mode 100644 index 8a5f3057..00000000 --- a/.github/workflows/docker-build-release.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: Release build -on: - workflow_dispatch: - push: - branches: - - release/** - -env: - ALPINE_IMAGE: alpine:3.18.3 - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Output commit sha - id: github_sha - run: echo "::set-output name=sha_short::${GITHUB_SHA::7}" - - - name: Build images with GoReleaser - uses: goreleaser/goreleaser-action@v4 - with: - distribution: goreleaser - version: latest - args: release -f goreleaser/.goreleaser-snapshot.yaml --snapshot - env: - GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - DOCKER_BUILDX_BUILDER: "${{ steps.buildx.outputs.name }}" - DOCKER_BUILDX_CACHE_FROM: "type=gha" - DOCKER_BUILDX_CACHE_TO: "type=gha,mode=max" - ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }} - - - name: Push Docker images - run: | - docker push kubeshop/testkube-operator:${{ steps.github_sha.outputs.sha_short }} - - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.CI_BOT_TOKEN }} - repository: kubeshop/helm-charts - event-type: trigger-workflow-operator-release - client-payload: '{"image_tag_operator": "${{ steps.github_sha.outputs.sha_short }}"}' \ No newline at end of file