drone: use pre-made image with dependencies

a cron job builds hrfee/jfa-go-build-docker daily, which includes the
apt dependencies for building.
mautrix
Harvey Tindall 4 years ago
parent 93c7a6e31b
commit 93937ec3b5
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -9,7 +9,7 @@ steps:
commands: commands:
- git fetch --tags - git fetch --tags
- name: release - name: release
image: golang:latest image: hrfee/jfa-go-build-docker:latest
volumes: volumes:
- name: ssh_key - name: ssh_key
path: /id_rsa path: /id_rsa
@ -19,11 +19,6 @@ steps:
GITHUB_TOKEN: GITHUB_TOKEN:
from_secret: github_token from_secret: github_token
commands: commands:
- apt-get update -y
- apt-get install build-essential python3-pip curl software-properties-common sed upx gcc libgtk-3-dev libappindicator3-dev gcc-mingw-w64-x86-64 -y
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
- apt-get install nodejs
- curl -sL https://git.io/goreleaser > ../goreleaser - curl -sL https://git.io/goreleaser > ../goreleaser
- chmod +x ../goreleaser - chmod +x ../goreleaser
- ./scripts/version.sh ../goreleaser - ./scripts/version.sh ../goreleaser
@ -81,15 +76,11 @@ type: docker
steps: steps:
- name: build - name: build
image: golang:latest image: hrfee/jfa-go-build-docker:latest
volumes: volumes:
- name: ssh_key - name: ssh_key
path: /id_rsa path: /id_rsa
commands: commands:
- apt-get update -y
- apt-get install build-essential python3-pip curl software-properties-common sed upx gcc libgtk-3-dev libappindicator3-dev gcc-mingw-w64-x86-64 -y
- (curl -sL https://deb.nodesource.com/setup_14.x | bash -)
- apt-get install nodejs
- curl -sL https://git.io/goreleaser > goreleaser - curl -sL https://git.io/goreleaser > goreleaser
- chmod +x goreleaser - chmod +x goreleaser
- ./scripts/version.sh ./goreleaser --snapshot --skip-publish --rm-dist - ./scripts/version.sh ./goreleaser --snapshot --skip-publish --rm-dist

Loading…
Cancel
Save