-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci/cd base * snap release * only on tags and release to 1/edge --------- Signed-off-by: Mina Ashraf <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release jimmctl snap | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v1*' | ||
|
||
|
||
# Note this workflow requires a Github secret to provide auth against snapstore. | ||
# snapcraft export-login --snaps=PACKAGE_NAME --acls package_access,package_push,package_update,package_release exported.txt | ||
# check this: https://github.com/snapcore/action-publish | ||
|
||
jobs: | ||
build: | ||
outputs: | ||
snap: ${{ steps.snapcraft.outputs.snap }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: scripts | ||
run: | | ||
mkdir -p ./snap | ||
cp ./snaps/jimmctl/snapcraft.yaml ./snap/ | ||
- uses: snapcore/action-build@v1 | ||
id: snapcraft | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.snapcraft.outputs.snap }} | ||
path: ${{ steps.snapcraft.outputs.snap }} | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{needs.build.outputs.snap}} | ||
- uses: snapcore/action-publish@v1 | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} | ||
with: | ||
store_login: ${{ secrets.STORE_LOGIN }} | ||
snap: ${{needs.build.outputs.snap}} | ||
release: '1/edge' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ local/vault/roleid.txt | |
*.crt | ||
*.key | ||
*.csr | ||
jimmctl | ||
/jimmctl | ||
qa-controller |
File renamed without changes.
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