|
16 | 16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17 | 17 |
|
18 | 18 | jobs:
|
19 |
| - release_gitops_cli: |
| 19 | + release-please: |
20 | 20 | runs-on: ubuntu-latest
|
| 21 | + outputs: |
| 22 | + cli-release-created: ${{ steps.release.outputs['.--release_created'] }} |
| 23 | + server-release-created: ${{ steps.release.outputs['gitops_server--release_created'] }} |
| 24 | + helm-release-created: ${{ steps.release.outputs['charts/gitops--release_created'] }} |
| 25 | + cli-version: ${{ steps.release.outputs['.--tag_name'] }} |
| 26 | + server-version: ${{ steps.release.outputs['gitops_server--tag_name'] }} |
| 27 | + helm-version: ${{ steps.release.outputs['charts/gitops--tag_name'] }} |
| 28 | + sha: ${{ steps.release.outputs.sha }} |
21 | 29 | steps:
|
22 |
| - - uses: googleapis/release-please-action@v4 |
| 30 | + - uses: google-github-actions/release-please-action@v4 |
23 | 31 | id: release
|
24 |
| - # Configured via: release-please-config.json and will update the manifest: .release-please-manifest.json |
25 | 32 | with: {}
|
26 |
| - outputs: |
27 |
| - # Root level release_created |
28 |
| - release_created: ${{ steps.release.outputs.release_created }} |
29 |
| - # Root level tag_name |
30 |
| - tag_name: ${{ steps.release.outputs.tag_name }} |
31 |
| - sha: ${{ steps.release.outputs.sha }} |
| 33 | + publish_helm_chart: |
| 34 | + runs-on: ubuntu-latest |
| 35 | + needs: release-please |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v3 |
| 38 | + - name: Publish Helm charts |
| 39 | + uses: stefanprodan/helm-gh-pages@master |
| 40 | + with: |
| 41 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 42 | + app_version: "${{ needs.release-please.outputs.server-version }}" |
| 43 | + chart_version: "${{ needs.release-please.outputs.helm-version }}" |
| 44 | + publish_to_pypi: |
| 45 | + name: Publishes tag to pypi |
| 46 | + runs-on: ubuntu-latest |
| 47 | + needs: release-please |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v3 |
| 50 | + |
| 51 | + - uses: jdx/mise-action@v2 |
| 52 | + with: |
| 53 | + install: true |
| 54 | + cache: true |
| 55 | + experimental: true |
| 56 | + |
| 57 | + - run: | |
| 58 | + mise run build |
| 59 | + shell: bash |
| 60 | +
|
| 61 | + - name: Publish Pypi Package |
| 62 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 63 | + publish_docker_image: |
| 64 | + name: Build and Push Docker Image |
| 65 | + uses: uptick/actions/.github/workflows/ci.yaml@main |
| 66 | + needs: release-please |
| 67 | + secrets: |
| 68 | + SECRET_ENV: "${{ secrets.CLUSTER_KEY }}" |
| 69 | + #https://github.com/uptick/actions/blob/main/.github/workflows/ci.yaml |
| 70 | + with: |
| 71 | + aws-iam-role-arn: "arn:aws:iam::305686791668:role/default-github-actions-ci-role" |
| 72 | + docker-enabled: true |
| 73 | + docker-context: "." |
| 74 | + docker-tag: "${{ needs.release-please.outputs.server-version }}" |
| 75 | + docker-tag-latest: true |
| 76 | + docker-image-platforms: linux/amd64 |
| 77 | + docker-repository: "305686791668.dkr.ecr.ap-southeast-2.amazonaws.com/gitops" |
| 78 | + command: echo $SECRET_ENV | base64 -d > cluster.key |
0 commit comments