Skip to content

Revert "backports changes back to feature-rebac (#1003)" (#1030) #18

Revert "backports changes back to feature-rebac (#1003)" (#1030)

Revert "backports changes back to feature-rebac (#1003)" (#1030) #18

Workflow file for this run

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
with:
fetch-depth: 0
- 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
with:
fetch-depth: 0
- 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"