-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (51 loc) · 1.72 KB
/
release.yml
File metadata and controls
57 lines (51 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release Jfrog Kubelet Plugin
# # This workflow releases the Jfrog Kubelet Plugin
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g., v1.0.0)'
required: true
default: 'v1.0.0'
jobs:
release:
environment: production
runs-on: self-hosted
permissions:
contents: write
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.23'
- name: Checkout code
uses: actions/checkout@v4
- name: Build
env:
VERSION: ${{ github.event.inputs.tag }}
run: |
cd build/
make build-all
- name: Import GPG Private Key
run: |
echo -n "$GPG_SIGNING_KEY" | base64 -d | gpg --batch --yes --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Sign Binaries
run: |
cd build/bin/
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --detach-sign --armor jfrog-credential-provider-linux-amd64
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --detach-sign --armor jfrog-credential-provider-linux-arm64
- name: Upload release artifacts
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
generate_release_notes: true
files: |
build/bin/jfrog-credential-provider-linux-amd64
build/bin/jfrog-credential-provider-linux-arm64
build/bin/jfrog-credential-provider-linux-amd64.asc
build/bin/jfrog-credential-provider-linux-arm64.asc