Skip to content

Commit

Permalink
Initial Kanto release infra and resources preparation
Browse files Browse the repository at this point in the history
1. Added a release GitHub workflow
2. Added GoReleaser configuration
3. Added Debian package resources

Signed-off-by: Konstantina Gramatova <[email protected]>
  • Loading branch information
konstantina-gramatova committed Feb 22, 2022
1 parent 3c56bdd commit 84fa314
Show file tree
Hide file tree
Showing 7 changed files with 617 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release

on:
push:
tags:
- 'v*'
env:
BUILD_TMP: ./build-tmp

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout kanto
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout suite-connector
uses: actions/checkout@v2
with:
repository: eclipse-kanto/suite-connector
path: ${{ env.BUILD_TMP }}/suite-connector'
ref: ${{ github.ref }}
token: ${{ secrets.WF_AUTH }}
- name: Checkout container-management
uses: actions/checkout@v2
with:
repository: eclipse-kanto/container-management
path: ${{ env.BUILD_TMP }}/container-management
ref: ${{ github.ref }}
token: ${{ secrets.WF_AUTH }}
- name: Checkout file-upload
uses: actions/checkout@v2
with:
repository: eclipse-kanto/file-upload
path: ${{ env.BUILD_TMP }}/file-upload
ref: ${{ github.ref }}
token: ${{ secrets.WF_AUTH }}
- name: Checkout software-update
uses: actions/checkout@v2
with:
repository: eclipse-kanto/software-update
path: ${{ env.BUILD_TMP }}/software-update
ref: ${{ github.ref }}
token: ${{ secrets.WF_AUTH }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: ~> 1.5
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
.vscode/
build-tmp/
dist/
Loading

0 comments on commit 84fa314

Please sign in to comment.