Skip to content

Commit a12c22e

Browse files
authored
Merge pull request #34 from plugsy/beta
2 parents e7a5d34 + 0d14e02 commit a12c22e

File tree

494 files changed

+15807
-23691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+15807
-23691
lines changed

.github/workflows/build-publish.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- beta
78

89
jobs:
910
getversion:
@@ -12,6 +13,8 @@ jobs:
1213
outputs:
1314
shouldBuild: ${{ steps.determineVersion.outputs.shouldBuild }}
1415
version: ${{ steps.determineVersion.outputs.version }}
16+
coreLabels: ${{ steps.setLabels.outputs.core }}
17+
agentLabels: ${{ steps.setLabels.outputs.agent }}
1518
steps:
1619
- name: Checkout repo
1720
uses: actions/checkout@v2
@@ -35,6 +38,20 @@ jobs:
3538
echo "::set-output name=version::$(cat .VERSION)"
3639
echo "Determined next version to be: $(cat .VERSION)"
3740
41+
42+
- name: Set Labels
43+
id: setLabels
44+
run: |
45+
if [[ $REF == "refs/heads/main" ]]; then
46+
echo "::set-output name=core::plugsy/core:${{ steps.determineVersion.outputs.version }},plugsy/core:latest"
47+
echo "::set-output name=agent::plugsy/agent:${{ steps.determineVersion.outputs.version }},plugsy/agent:latest"
48+
else
49+
echo "::set-output name=core::plugsy/core:${{ steps.determineVersion.outputs.version }}"
50+
echo "::set-output name=agent::plugsy/agent:${{ steps.determineVersion.outputs.version }}"
51+
fi
52+
env:
53+
REF: ${{ github.ref }}
54+
3855
buildcore:
3956
needs: getversion
4057
name: "Build Release Core"
@@ -75,10 +92,11 @@ jobs:
7592
- name: Build and push
7693
uses: docker/build-push-action@v2
7794
with:
95+
platforms: linux/amd64,linux/arm64
7896
context: .
7997
file: packages/core/Dockerfile
8098
push: true
81-
tags: plugsy/core:${{ needs.getversion.outputs.version }},plugsy/core:latest
99+
tags: ${{ needs.getversion.outputs.coreLabels }}
82100
cache-from: type=local,src=/tmp/.buildx-cache
83101
cache-to: type=local,dest=/tmp/.buildx-cache-new
84102
# This ugly bit is necessary if you don't want your cache to grow forever
@@ -131,10 +149,11 @@ jobs:
131149
- name: Build and push
132150
uses: docker/build-push-action@v2
133151
with:
152+
platforms: linux/amd64,linux/arm64,linux/arm/v7
134153
context: .
135154
file: packages/agent/Dockerfile
136155
push: true
137-
tags: plugsy/agent:${{ needs.getversion.outputs.version }},plugsy/agent:latest
156+
tags: ${{ needs.getversion.outputs.agentLabels }}
138157
cache-from: type=local,src=/tmp/.buildx-cache
139158
cache-to: type=local,dest=/tmp/.buildx-cache-new
140159
# This ugly bit is necessary if you don't want your cache to grow forever
@@ -179,6 +198,12 @@ jobs:
179198
find: "https:\\/\\/github\\.com\\/plugsy\\/core\\/releases\\/download\\/(.*?)\\/core-config-schema\\.json"
180199
replace: "https://github.com/plugsy/core/releases/download/v${{ needs.getversion.outputs.version }}/core-config-schema.json"
181200

201+
- name: Find and Replace
202+
uses: jacobtomlinson/gha-find-replace@master
203+
with:
204+
find: "https:\\/\\/github\\.com\\/plugsy\\/core\\/releases\\/download\\/(.*?)\\/agent-config-schema\\.json"
205+
replace: "https://github.com/plugsy/core/releases/download/v${{ needs.getversion.outputs.version }}/agent-config-schema.json"
206+
182207
- name: Create Pull Request with updated package files
183208
uses: peter-evans/create-pull-request@v3
184209
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ yarn-error.log*
3737
.cache
3838
dist
3939

40-
**/.parcel-cache
4140

4241
.yarn/*
4342
!.yarn/cache

.pnp.js

Lines changed: 8019 additions & 12568 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"**/.yarn": true,
88
"**/.pnp.*": true,
99
"**/.cache/**": true,
10-
"**/.parcel-cache/**": true,
1110
},
1211
"eslint.nodePath": ".yarn/sdks",
1312
"typescript.tsdk": ".yarn/sdks/typescript/lib",
65.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)