Skip to content
Snippets Groups Projects
Unverified Commit e154d05c authored by Will McCutchen's avatar Will McCutchen Committed by GitHub
Browse files

Misc build & CI fixes (#76)

* Fix installation of deps

* Rebuild static assets w/ newest go-bindata

* Update go versions for CI

* Fix deploy on merge

* Bump golangci-lint version
parent 45635849
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ jobs: ...@@ -21,7 +21,7 @@ jobs:
- name: Setup - name: Setup
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: '1.17' go-version: '1.18'
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
...@@ -46,8 +46,7 @@ jobs: ...@@ -46,8 +46,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go_version: go_version:
- '1.14' - '1.17'
- '1.15'
- '1.16' - '1.16'
steps: steps:
...@@ -74,6 +73,9 @@ jobs: ...@@ -74,6 +73,9 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@1.3
- name: Notify start - name: Notify start
id: deployment id: deployment
uses: bobheadxi/deployments@v0.6.1 uses: bobheadxi/deployments@v0.6.1
...@@ -83,9 +85,7 @@ jobs: ...@@ -83,9 +85,7 @@ jobs:
env: production env: production
- name: Deploy - name: Deploy
uses: superfly/flyctl-actions@1.1 run: "flyctl deploy --strategy rolling"
with:
args: "deploy --strategy rolling"
env: env:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
......
...@@ -13,6 +13,6 @@ jobs: ...@@ -13,6 +13,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v3.1.0
with: with:
version: v1.39.0 version: v1.45.2
...@@ -157,13 +157,13 @@ imagepush: ...@@ -157,13 +157,13 @@ imagepush:
# Deps are installed outside of working dir to avoid polluting go modules # Deps are installed outside of working dir to avoid polluting go modules
# ============================================================================= # =============================================================================
$(TOOL_GOBINDATA): $(TOOL_GOBINDATA):
cd /tmp && go get -u github.com/kevinburke/go-bindata/... go install github.com/kevinburke/go-bindata/go-bindata@v3.23.0
$(TOOL_GOLINT): $(TOOL_GOLINT):
cd /tmp && go get -u golang.org/x/lint/golint go install golang.org/x/lint/golint@latest
$(TOOL_REFLEX): $(TOOL_REFLEX):
cd /tmp && go get -u github.com/cespare/reflex go install github.com/cespare/reflex@0.3.1
$(TOOL_STATICCHECK): $(TOOL_STATICCHECK):
cd /tmp && go get -u honnef.co/go/tools/cmd/staticcheck go install honnef.co/go/tools/cmd/staticcheck@v0.3.0
// Code generated by go-bindata. DO NOT EDIT. // Code generated by go-bindata. DO NOT EDIT.
// sources: // sources:
// static/forms-post.html (1.398kB) // forms-post.html (1.398kB)
// static/image.jpeg (35.588kB) // image.jpeg (35.588kB)
// static/image.png (8.09kB) // image.png (8.09kB)
// static/image.svg (8.984kB) // image.svg (8.984kB)
// static/image.webp (10.568kB) // image.webp (10.568kB)
// static/index.html (10.917kB) // index.html (10.917kB)
// static/moby.html (3.742kB) // moby.html (3.742kB)
// static/sample.json (421B) // sample.json (421B)
// static/sample.xml (522B) // sample.xml (522B)
// static/utf8.html (14.24kB) // utf8.html (14.24kB)
package assets package assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment