Skip to content

Commit

Permalink
Fix releasing CLIs pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Dec 17, 2021
1 parent bfb5815 commit fe295d9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/branch-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:

jobs:


release-cli:
name: Release the latest Capact CLIs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -53,11 +52,9 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: upx version
run: upx -V
- name: Install upx
run: sudo apt-get update -y
- name: Install upx
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Install upx 3.96
run: |
# Install UPX
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
Expand All @@ -67,10 +64,13 @@ jobs:
./upx-3.96-amd64_linux/upx -V
mv ./upx-3.96-amd64_linux/upx /usr/local/bin/upx
upx -V
- name: upx version
run: upx -V
- name: Set up GoReleaser
run: go install github.com/goreleaser/[email protected]
- name: Set up GCS
uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.CAPACT_GCS_CREDS }}
export_default_credentials: true
- name: Release latest CLI
run: |
make release-latest-binaries
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}
- name: Set up GoReleaser
run: go install github.com/goreleaser/goreleaser@v0.173.2
run: go install github.com/goreleaser/goreleaser@v1.1.0
- name: Set up GCS
uses: google-github-actions/setup-gcloud@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}
- name: Set up GoReleaser
run: go install github.com/goreleaser/goreleaser@v0.173.2
run: go install github.com/goreleaser/goreleaser@v1.1.0
- run: make build-tool-cli
- name: Share Capact CLI for integration tests bootstrapping
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/recreate_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
go-version: ${{env.GO_VERSION}}
- name: Set up GoReleaser
run: go install github.com/goreleaser/goreleaser@v0.173.2
run: go install github.com/goreleaser/goreleaser@v1.1.0
- name: Delete old cluster
env:
OLD_CLUSTER_NAME: ${{ github.event.inputs.oldClusterToDelete }}
Expand Down
7 changes: 7 additions & 0 deletions .goreleaser.latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ archives:
- format: binary
name_template: '{{ .Binary }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'

dockers:
- dockerfile: Dockerfile.cli
ids:
- capact
image_templates:
- "ghcr.io/mszostok/tools/capact-cli:latest"

checksum:
name_template: 'checksums.txt'

Expand Down

0 comments on commit fe295d9

Please sign in to comment.