Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyhum committed Apr 19, 2024
1 parent 95638a2 commit a0dbfca
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 68 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,30 @@ 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 '[email protected]'
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
needs: create_tag
permissions:
packages: write
contents: write
outputs:
release: ${{ steps.output_release.outputs.release_link }}
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
Expand All @@ -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
Expand Down
131 changes: 64 additions & 67 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a0dbfca

Please sign in to comment.