Skip to content

Commit 23df5c7

Browse files
committed
In progress
1 parent 46ffce8 commit 23df5c7

18 files changed

+793
-8
lines changed

.github/workflows/framework-golden-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
- 'framework/**'
6666
- '.github/workflows/framework-golden-tests.yml'
6767
- name: Set up Go
68-
uses: actions/setup-go@v4
68+
uses: actions/setup-go@v5
6969
with:
70-
go-version: 1.22.8
70+
go-version: 1.23
7171
- name: Cache Go modules
7272
uses: actions/cache@v3
7373
with:

.github/workflows/framework.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
src:
3737
- 'framework/**'
3838
- name: Set up Go
39-
uses: actions/setup-go@v4
39+
uses: actions/setup-go@v5
4040
with:
41-
go-version: 1.22.8
41+
go-version: 1.23
4242
- name: Cache Go modules
4343
uses: actions/cache@v4
4444
with:

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
path: ./tools/asciitable/
5757
- name: workflowresultparser
5858
path: ./tools/workflowresultparser/
59+
- name: parrotserver
60+
path: ./parrotserver/
5961
steps:
6062
- name: Check out Code
6163
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Parrotserver Release
2+
3+
on:
4+
push:
5+
tags:
6+
- parrotserver/v*
7+
8+
jobs:
9+
release:
10+
name: Build and Release
11+
runs-on: ubuntu-latest
12+
environment: integration
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
16+
- name: Configure AWS Credentials
17+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
18+
with:
19+
aws-region: ${{ secrets.QA_AWS_REGION }}
20+
role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
21+
role-duration-seconds: 600
22+
- name: Login to Amazon ECR
23+
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
24+
with:
25+
mask-password: 'true'
26+
env:
27+
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
28+
- name: Build and release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
IMAGE_PREFIX: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/parrotserver
32+
IMAGE_TAG: ${{ github.ref_name}}
33+
run: goreleaser release --clean -f ./parrotserver/.goreleaser.yml

.github/workflows/rc-breaking-changes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
fetch-tags: true
19-
- name: Set up Go 1.22.6
19+
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: '1.22.6'
22+
go-version: 1.23
2323
- name: Install gorelease tool
2424
run: |
2525
go install golang.org/x/exp/cmd/gorelease@latest

.github/workflows/release-go-module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Set up Go
7070
uses: actions/setup-go@v5
7171
with:
72-
go-version: '1.22.6'
72+
go-version: 1.23
7373
- name: Install gorelease tool
7474
run: |
7575
go install golang.org/x/exp/cmd/gorelease@latest

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
path: ./tools/flakeguard/
2727
- name: workflowresultparser
2828
path: ./tools/workflowresultparser/
29+
- name: parrotserver
30+
path: ./parrotserver/
2931
runs-on: ubuntu-latest
3032
name: ${{ matrix.project.name }} unit tests
3133
steps:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ __debug*
7777
.tool-versions
7878

7979
import_keys_test.go
80-
tag.py
80+
tag.py
81+
82+
parrotserver/*.json

parrotserver/.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Dockerfile
2+
*.md
3+
*.log
4+
.gitignore
5+
.golangci-lint.yml
6+
.goreleaser.yml
7+
.pre-commit-config.yaml
8+
*_test.go
9+
LICENSE
10+
.vscode/
11+
dist/
12+
.github/
13+
save.json

parrotserver/.goreleaser.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
2+
version: 1
3+
project_name: parrotserver
4+
5+
monorepo:
6+
tag_prefix: parrotserver/
7+
dir: parrotserver
8+
9+
env:
10+
- IMG_PRE={{ if index .Env "IMAGE_PREFIX" }}{{ .Env.IMAGE_PREFIX }}{{ else }}local{{ end }}
11+
- TAG={{ if index .Env "IMAGE_TAG" }}{{ .Env.IMAGE_TAG }}{{ else }}latest{{ end }}
12+
13+
# Build settings for binaries
14+
builds:
15+
- id: parrotserver
16+
goos:
17+
- linux
18+
- darwin
19+
goarch:
20+
- amd64
21+
- arm64
22+
ldflags:
23+
- '-s -w'
24+
25+
archives:
26+
- format: binary
27+
28+
dockers:
29+
- id: linux-amd64-parrotserver
30+
goos: linux
31+
goarch: amd64
32+
image_templates:
33+
- '{{ .Env.IMG_PRE }}/parrotserver:{{ .Tag }}'
34+
- '{{ .Env.IMG_PRE }}/parrotserver:latest'
35+
build_flag_templates:
36+
- --platform=linux/amd64
37+
- --pull
38+
- --label=org.opencontainers.image.created={{.Date}}
39+
- --label=org.opencontainers.image.title={{.ProjectName}}
40+
- --label=org.opencontainers.image.revision={{.FullCommit}}
41+
- --label=org.opencontainers.image.version={{.Version}}
42+
- id: linux-arm64-parrotserver
43+
goos: linux
44+
goarch: arm64
45+
image_templates:
46+
- '{{ .Env.IMG_PRE }}/parrotserver:{{ .Tag }}-arm64'
47+
- '{{ .Env.IMG_PRE }}/parrotserver:latest-arm64'
48+
build_flag_templates:
49+
- --platform=linux/arm64
50+
- --pull
51+
- --label=org.opencontainers.image.created={{.Date}}
52+
- --label=org.opencontainers.image.title={{.ProjectName}}
53+
- --label=org.opencontainers.image.revision={{.FullCommit}}
54+
- --label=org.opencontainers.image.version={{.Version}}
55+
56+
before:
57+
hooks:
58+
- cd parrotserver && go mod tidy

0 commit comments

Comments
 (0)