CSS-4936 Postgres as secret backend (#1011) #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to v2/edge | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v2*' | |
# Note this workflow requires a Github secret to provide auth against charmhub. | |
# This can be generated with the following command | |
# charmcraft login --export=secrets.auth --charm=<charm-name> --permission=package-manage --permission=package-view --channel=latest/edge --ttl=999999999 | |
jobs: | |
ci-tests: | |
uses: ./.github/workflows/ci.yaml | |
charm-tests: | |
uses: ./.github/workflows/charm-test.yaml | |
snap-build: | |
uses: ./.github/workflows/snap.yaml | |
release-k8s-charm: | |
name: Release k8s charm | |
needs: | |
- ci-tests | |
- charm-tests | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build local images | |
run: make jimm-image | |
- name: Upload charm to charmhub | |
uses: kian99/charming-actions/upload-charm@add-local-image-option | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "2/edge" | |
charm-path: "./charms/jimm-k8s" | |
local-image: "true" | |
tag-prefix: "v2-k8s" | |
release-machine-charm: | |
name: Release machine charm | |
needs: | |
- ci-tests | |
- charm-tests | |
- snap-build | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/download-artifact@master | |
with: | |
name: jimm-snap | |
- name: Install charmcraft | |
run: sudo snap install charmcraft --channel=2.x/stable --classic | |
- name: Publish Charm Resource | |
run: charmcraft upload-resource juju-jimm jimm-snap --filepath ./jimm.snap | |
env: | |
CHARMCRAFT_AUTH: "${{ secrets.CHARMHUB_TOKEN }}" | |
- name: Upload charm to charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "2/edge" | |
charm-path: "./charms/jimm" | |
tag-prefix: "v2-machine" |