Skip to content

Commit

Permalink
Signed release channels
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Denisenko <[email protected]>
  • Loading branch information
d2285 committed Dec 6, 2024
1 parent e5e48d5 commit 955d3c6
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/trdl_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: trdl-publish
on:
push:
paths:
- trdl_channels.yaml

defaults:
run:
shell: bash

jobs:
publish:
name: Publish release channels using trdl server
runs-on: ubuntu-22.04
steps:
- name: Publish
uses: werf/trdl-vault-actions/publish@main
with:
vault-addr: https://trrr.flant.dev
project-name: deckhouse-cli
vault-auth-method: approle
vault-role-id: f1b89aca-a28b-04ed-1631-6413758a4ee3
vault-secret-id: dddec62a-39a9-71e2-fea4-f631cf399b09
19 changes: 19 additions & 0 deletions .github/workflows/trdl_releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: trdl-release
on:
create:

jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Perform deckhouse-cli release using trdl server
runs-on: ubuntu-latest
steps:
- name: Release
uses: werf/trdl-vault-actions/release@main
with:
vault-addr: https://trrr.flant.dev
project-name: deckhouse-cli
git-tag: ${{ github.event.ref }}
vault-auth-method: approle
vault-role-id: f1b89aca-a28b-04ed-1631-6413758a4ee3
vault-secret-id: dddec62a-39a9-71e2-fea4-f631cf399b09
15 changes: 15 additions & 0 deletions scripts/ci/release-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh -e

VERSION=$1
if [ -z "$VERSION" ] ; then
echo "Required version argument!" 1>&2
echo 1>&2
echo "Usage: $0 VERSION" 1>&2
exit 1
fi

apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc software-properties-common && add-apt-repository ppa:longsleep/golang-backports -y && apt install golang-1.23 -y
export PATH=$PATH:/usr/lib/go-1.23/bin
git config --global url."https://gitlab-ci-token:[email protected]/".insteadOf https://fox.flant.com/
git config --global --add safe.directory '*'
go run github.com/mitchellh/gox@latest -osarch="linux/amd64" -output="release-build/$VERSION/{{.OS}}-{{.Arch}}/bin/d8" -ldflags="-linkmode external -extldflags=-static" -tags="dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp osusergo exclude_graphdriver_devicemapper netgo no_devmapper static_build cni" github.com/deckhouse/deckhouse-cli
3 changes: 3 additions & 0 deletions trdl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker_image: ubuntu@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97
commands:
- ./scripts/ci/release-build.sh {{ .Tag }} && cp -a release-build/{{ .Tag }}/* /result
7 changes: 7 additions & 0 deletions trdl_channels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
groups:
- name: "0"
channels:
- name: alpha
version: 0.7.1
- name: stable
version: 0.7.1

0 comments on commit 955d3c6

Please sign in to comment.