Skip to content

Commit

Permalink
Updated docker images for the release build
Browse files Browse the repository at this point in the history
* FE node:14 to node:16-alpine
* BE golang:1 to golang:1-alpine
  • Loading branch information
HadesArchitect authored Feb 20, 2022
1 parent d2906cb commit cec85b5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@master
- name: yarn install
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:14 yarn install
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:16-alpine yarn install
- name: yarn build
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:14 yarn build
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:16-alpine yarn build
- name: go mod vendor
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1 go mod vendor
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1-alpine go mod vendor
- name: go build linux
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1 go build -o ../dist/cassandra-plugin_linux_amd64 .
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1-alpine go build -o ../dist/cassandra-plugin_linux_amd64 .
- name: backend tests
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1 go test .
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1-alpine go test -v -vet=off .
- name: go build windows
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=windows -e GOARCH=amd64 golang:1 go build -o ../dist/cassandra-plugin_windows_amd64.exe .
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=windows -e GOARCH=amd64 golang:1-alpine go build -o ../dist/cassandra-plugin_windows_amd64.exe .
- name: go build darwin
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=darwin -e GOARCH=amd64 golang:1 go build -o ../dist/cassandra-plugin_darwin_amd64 .
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=darwin -e GOARCH=amd64 golang:1-alpine go build -o ../dist/cassandra-plugin_darwin_amd64 .
- name: go build arm64 (m1)
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=linux -e GOARCH=arm64 golang:1 go build -o ../dist/cassandra-plugin_linux_arm64 .
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=linux -e GOARCH=arm64 golang:1-alpine go build -o ../dist/cassandra-plugin_linux_arm64 .
- name: sign the build
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds -e GRAFANA_API_KEY=${{ secrets.GRAFANA_API_KEY }} node:14 npm run-script sign
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds -e GRAFANA_API_KEY=${{ secrets.GRAFANA_API_KEY }} node:16-alpine npm run-script sign
- name: Package plugin
id: package-plugin
run: |
Expand Down

0 comments on commit cec85b5

Please sign in to comment.