File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ paths :
8+ - .devcontainer/**
9+ - .github/workflows/devcontainer.yml
10+ pull_request :
11+ paths :
12+ - .devcontainer/**
13+ - .github/workflows/devcontainer.yml
714 workflow_dispatch :
815
916permissions :
@@ -16,11 +23,13 @@ jobs:
1623 steps :
1724 - uses : actions/checkout@v6
1825 - uses : docker/login-action@v3
26+ if : github.ref == 'refs/heads/main'
1927 with :
2028 registry : registry.jetbrains.team
2129 username : ${{ secrets.SPACE_PUBLISH_USERNAME }}
2230 password : ${{ secrets.SPACE_PUBLISH_PASSWORD }}
2331 - uses : docker/login-action@v3
32+ if : github.ref == 'refs/heads/main'
2433 with :
2534 registry : ghcr.io
2635 username : ${{ github.actor }}
3039 - uses : docker/build-push-action@v6
3140 with :
3241 context : .devcontainer
33- push : true
42+ push : ${{ github.ref == 'refs/heads/main' }}
43+ platforms : linux/amd64,linux/arm64
3444 tags : |
3545 registry.jetbrains.team/p/sa/public/godevcontainer:1.${{ github.run_number }}
3646 registry.jetbrains.team/p/sa/public/godevcontainer:latest
Original file line number Diff line number Diff line change @@ -106,9 +106,15 @@ class GoReleaser(
106106 scriptContent = if (releaseType.isNightlyOrRelease()) {
107107 """
108108 set -e
109- curl -fsSL -o /usr/local/bin/codesign https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64
110- curl -fsSL -o /tmp/codesign.sha256 https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64.sha256
111- curl -fsSL -o /tmp/codesign.sha256.asc https://codesign-distribution.labs.jb.gg/codesign-client-linux-amd64.sha256.asc
109+ ARCH=${' $' } (uname -m)
110+ case ${' $' } ARCH in
111+ x86_64) ARCH_SUFFIX="amd64" ;;
112+ aarch64|arm64) ARCH_SUFFIX="arm64" ;;
113+ *) echo "Unsupported architecture: ${' $' } ARCH"; exit 1 ;;
114+ esac
115+ curl -fsSL -o /usr/local/bin/codesign https://codesign-distribution.labs.jb.gg/codesign-client-linux-${' $' } ARCH_SUFFIX
116+ curl -fsSL -o /tmp/codesign.sha256 https://codesign-distribution.labs.jb.gg/codesign-client-linux-${' $' } ARCH_SUFFIX.sha256
117+ curl -fsSL -o /tmp/codesign.sha256.asc https://codesign-distribution.labs.jb.gg/codesign-client-linux-${' $' } ARCH_SUFFIX.sha256.asc
112118 chmod +x /usr/local/bin/codesign
113119 curl -fsSL https://download-cdn.jetbrains.com/KEYS | gpg --import -
114120 gpg --batch --verify /tmp/codesign.sha256.asc /tmp/codesign.sha256
You can’t perform that action at this time.
0 commit comments