diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4c0e09d3f4..b99c4ed248 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,16 +17,21 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + outputs: + tag: ${{ steps.output_tag.outputs.tag }} steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 with: ## FIXME: change to master ref: ci-release - - run: | + - id: create_tag + run: | git config --global user.name 'Kasten Production' git config --global user.email 'infra@kasten.io' git tag -a "${RELEASE_TAG}" -m "Release version" git push origin "${RELEASE_TAG}" + - id: output_tag + run: echo "tag=${RELEASE_TAG}" >> "$GITHUB_OUTPUT" release_packages: runs-on: ubuntu-latest @@ -34,6 +39,8 @@ jobs: permissions: packages: write contents: write + outputs: + release: ${{ steps.output_release.outputs.release_link }} steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 with: @@ -56,6 +63,8 @@ jobs: with: name: helm-index path: helm_package/index.yaml + - id: output_release + run: echo "release_link=https://github.com/kanisterio/kanister/releases/tag/${RELEASE_TAG}" >> "$GITHUB_OUTPUT" release_docs_and_charts: runs-on: ubuntu-latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 431f03d401..a8dbe88def 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,9 +3,6 @@ before: hooks: - go mod download release: - ## FIXME: remove that after testing - draft: true - replace_existing_draft: true prerelease: auto extra_files: - glob: 'helm_package/kanister-operator-*.tgz' @@ -87,70 +84,70 @@ dockers: dockerfile: 'docker/kanister-kubectl/Dockerfile' build_flag_templates: - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/postgres-kanister-tools:{{ .Tag }}' -# dockerfile: 'docker/postgres-kanister-tools/Dockerfile' -# build_flag_templates: -# - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - image_templates: -# - 'ghcr.io/kanisterio/postgresql:{{ .Tag }}' -# dockerfile: 'docker/postgresql/Dockerfile' -# build_flag_templates: -# - "--pull" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/es-sidecar:{{ .Tag }}' -# dockerfile: 'docker/kanister-elasticsearch/image/Dockerfile' -# build_flag_templates: -# - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/mysql-sidecar:{{ .Tag }}' -# dockerfile: 'docker/kanister-mysql/image/Dockerfile' -# build_flag_templates: -# - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/mongodb:{{ .Tag }}' -# dockerfile: 'docker/mongodb/Dockerfile' -# build_flag_templates: -# - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/cassandra:{{ .Tag }}' -# dockerfile: 'docker/cassandra/Dockerfile' -# build_flag_templates: -# - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" -# - image_templates: -# - 'ghcr.io/kanisterio/kafka-adobe-s3-source-connector:{{ .Tag }}' -# dockerfile: 'docker/kafka-adobes3Connector/image/adobeSource.Dockerfile' -# extra_files: -# - 'docker/kafka-adobes3Connector/image/adobe-monitorsource.sh' -# - 'docker/kafka-adobes3Connector/image/cleans3.py' -# build_flag_templates: -# - "--pull" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/kafka-adobe-s3-sink-connector:{{ .Tag }}' -# dockerfile: 'docker/kafka-adobes3Connector/image/adobeSink.Dockerfile' -# extra_files: -# - 'docker/kafka-adobes3Connector/image/adobe-monitorsink.sh' -# build_flag_templates: -# - "--pull" -# - ids: -# - kando -# image_templates: -# - 'ghcr.io/kanisterio/mssql-tools:{{ .Tag }}' -# dockerfile: 'docker/mssql-tools/Dockerfile' -# build_flag_templates: -# - "--pull" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/postgres-kanister-tools:{{ .Tag }}' + dockerfile: 'docker/postgres-kanister-tools/Dockerfile' + build_flag_templates: + - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" +- image_templates: + - 'ghcr.io/kanisterio/postgresql:{{ .Tag }}' + dockerfile: 'docker/postgresql/Dockerfile' + build_flag_templates: + - "--pull" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/es-sidecar:{{ .Tag }}' + dockerfile: 'docker/kanister-elasticsearch/image/Dockerfile' + build_flag_templates: + - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/mysql-sidecar:{{ .Tag }}' + dockerfile: 'docker/kanister-mysql/image/Dockerfile' + build_flag_templates: + - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/mongodb:{{ .Tag }}' + dockerfile: 'docker/mongodb/Dockerfile' + build_flag_templates: + - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/cassandra:{{ .Tag }}' + dockerfile: 'docker/cassandra/Dockerfile' + build_flag_templates: + - "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}" +- image_templates: + - 'ghcr.io/kanisterio/kafka-adobe-s3-source-connector:{{ .Tag }}' + dockerfile: 'docker/kafka-adobes3Connector/image/adobeSource.Dockerfile' + extra_files: + - 'docker/kafka-adobes3Connector/image/adobe-monitorsource.sh' + - 'docker/kafka-adobes3Connector/image/cleans3.py' + build_flag_templates: + - "--pull" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/kafka-adobe-s3-sink-connector:{{ .Tag }}' + dockerfile: 'docker/kafka-adobes3Connector/image/adobeSink.Dockerfile' + extra_files: + - 'docker/kafka-adobes3Connector/image/adobe-monitorsink.sh' + build_flag_templates: + - "--pull" +- ids: + - kando + image_templates: + - 'ghcr.io/kanisterio/mssql-tools:{{ .Tag }}' + dockerfile: 'docker/mssql-tools/Dockerfile' + build_flag_templates: + - "--pull" snapshot: name_template: '{{ .Tag }}' checksum: