Skip to content

Commit 21d5e7e

Browse files
committed
deleteme
1 parent 56bb693 commit 21d5e7e

File tree

1 file changed

+55
-11
lines changed

1 file changed

+55
-11
lines changed

.github/workflows/time-tag.yml

+55-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,62 @@
11
name: Automatic monthly tag with format v0.0.yyMM
2-
on:
3-
schedule:
4-
# At 00:00 on the first day of each month
5-
- cron: '0 0 1 * *'
2+
on: workflow_dispatch
3+
permissions:
4+
id-token: write
5+
attestations: write
6+
contents: read
67
jobs:
7-
tag:
8+
package:
9+
name: Createa Debian package
810
runs-on: ubuntu-latest
11+
env:
12+
GO111MODULE: on
13+
CI_PIPELINE: true
914
steps:
10-
- name: Checkout repository
11-
uses: actions/checkout@v3
15+
- uses: actions/setup-go@v4
1216
with:
17+
go-version: "1.22"
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-tags: true
1322
fetch-depth: 0
14-
- name: Generate a new tag and push it
23+
- name: Install mockgen
24+
run: |
25+
go install github.com/golang/mock/[email protected]
26+
- name: Install gopls
27+
run: |
28+
go install golang.org/x/tools/gopls@latest
29+
- name: Install guru
30+
run: |
31+
go install golang.org/x/tools/cmd/guru@latest
32+
- name: Install Protoc
33+
uses: arduino/setup-protoc@v1
34+
with:
35+
version: '3.x'
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}
37+
- name: protoc-gen deps
1538
run: |
16-
TAG="v0.0.$(date +%y%m)"
17-
git tag $TAG
18-
git push origin $TAG
39+
go install google.golang.org/protobuf/cmd/[email protected]
40+
go install google.golang.org/grpc/cmd/[email protected]
41+
go install github.com/mitchellh/[email protected]
42+
- name: Install packaging deps
43+
uses: ConorMacBride/install-package@v1
44+
with:
45+
apt: openssl sqlite3 gettext findutils jq
46+
- name: Install step-cli
47+
run: |
48+
wget https://dl.smallstep.com/cli/docs-cli-install/latest/step-cli_amd64.deb -O /tmp/step-cli_amd64.deb
49+
sudo dpkg -i /tmp/step-cli_amd64.deb
50+
- name: create deb
51+
run: |
52+
mkdir /tmp/veraison-package
53+
deployments/debian/deployment.sh create-deb /tmp/veraison-package
54+
- name: upload deb
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: Veraision services Debian package
58+
path: /tmp/veraison-package/*deb
59+
- name: attest deb
60+
uses: actions/attest-build-provenance@v2
61+
with:
62+
subject-path: /tmp/veraison-package/*deb

0 commit comments

Comments
 (0)