-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[d8-trdl] Add trdl files release deploy #65
Closed
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
92442b5
init
d2285 6c2cd35
++
d2285 791a43e
++
d2285 52ba96a
++
d2285 be625b9
++
d2285 9b730f7
++
d2285 5846d55
++
d2285 c559b60
++
d2285 be3784c
++
d2285 4117987
Signed release channels
d2285 5423607
++
d2285 cddfeb6
Signed release channels
d2285 0c3468a
Signed release channels
d2285 89a5811
Signed release channels
d2285 8f497b8
Signed release channels
d2285 74ac975
Signed release channels
d2285 0982010
Signed release channels
d2285 9917495
Signed release channels
d2285 bfd2194
Signed release channels
d2285 57f3366
Signed release channels
d2285 4920107
Signed release channels
d2285 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,27 @@ | ||
name: trdl-release | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
release: | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
name: Perform deckhouse-cli release using trdl server | ||
# runs-on: [self-hosted, regular] | ||
# container: | ||
# image: ubuntu:22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Release | ||
uses: werf/trdl-vault-actions/release@main | ||
with: | ||
vault-addr: ${{ secrets.TRDL_VAULT_ADDR }} | ||
project-name: deckhouse-cli | ||
git-tag: ${{ github.event.ref }} | ||
vault-auth-method: approle | ||
vault-role-id: ${{ secrets.TRDL_VAULT_ROLE_ID }} | ||
vault-secret-id: ${{ secrets.TRDL_VAULT_SECRET_ID }} |
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 |
---|---|---|
|
@@ -35,3 +35,4 @@ bin/ | |
d8 | ||
dist/ | ||
build/ | ||
release-build/ |
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
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,11 @@ | ||
#!/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 | ||
|
||
#task build-and-package |
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,3 @@ | ||
docker_image: golang:1.23-alpine@sha256:c694a4d291a13a9f9d94933395673494fc2cc9d4777b85df3a7e70b3492d3574 | ||
commands: | ||
- ./scripts/ci/release-build.sh {{ .Tag }} && cp -a release-build/{{ .Tag }}/* /result |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use
registry.deckhouse.io/base_images/golang:1.23.1-bullseye@sha256:a24507d1a36fce86431198a979435dadb187e8d0ce0b5c181f46d6788d84a40f
here