From 93937ec3b51c0db63d661e8f73ba5f19ebfb4f66 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 31 May 2021 14:50:03 +0100 Subject: [PATCH] drone: use pre-made image with dependencies a cron job builds hrfee/jfa-go-build-docker daily, which includes the apt dependencies for building. --- .drone.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index fed9a31..728506c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ steps: commands: - git fetch --tags - name: release - image: golang:latest + image: hrfee/jfa-go-build-docker:latest volumes: - name: ssh_key path: /id_rsa @@ -19,11 +19,6 @@ steps: GITHUB_TOKEN: from_secret: github_token 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 - chmod +x ../goreleaser - ./scripts/version.sh ../goreleaser @@ -81,15 +76,11 @@ type: docker steps: - name: build - image: golang:latest + image: hrfee/jfa-go-build-docker:latest volumes: - name: ssh_key path: /id_rsa 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 - chmod +x goreleaser - ./scripts/version.sh ./goreleaser --snapshot --skip-publish --rm-dist