-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migrate to ghcr.io container registry - Publish images labels with full version - Use non-root image in Docker image - Use embed instead of packr to embed assets - Update Go to 1.21 and module deps - Drop API schema publishing functionality
- Loading branch information
Showing
34 changed files
with
189 additions
and
747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
name: GoReleaser | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
name: GoReleaser | ||
permissions: | ||
contents: write | ||
packages: write | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
fetch-depth: 0 | ||
- name: Fetch all tags | ||
run: git fetch origin +refs/tags/*:refs/tags/* | ||
- name: Install Go | ||
uses: actions/setup-go@v1 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Log in to the GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
go-version: 1.15.x | ||
- name: Install Docker credentials | ||
run: | | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
docker login -u qubot -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.QUBOT_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: success() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
/web/node_modules | ||
|
||
*.swp | ||
*-packr.go | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
FROM node:11 as frontend | ||
FROM node:18 as frontend | ||
WORKDIR /src | ||
COPY ./ui ./ui | ||
RUN yarn --cwd /src/ui install | ||
RUN yarn --cwd /src/ui build | ||
|
||
ARG GO_VERSION=1.15 | ||
FROM golang:${GO_VERSION}-alpine AS build | ||
FROM golang:1.21.1-alpine AS build | ||
RUN apk add --no-cache ca-certificates git make | ||
WORKDIR /src | ||
COPY ./go.mod ./go.sum ./Makefile ./ | ||
RUN make deps | ||
COPY ./ ./ | ||
RUN make build | ||
|
||
FROM alpine:3.11 AS final | ||
FROM alpine:3.18 AS final | ||
RUN apk --no-cache add ca-certificates graphviz | ||
COPY --from=build /tmp/amflow /bin/amflow | ||
COPY --from=build /src/dist/amflow /bin/amflow | ||
ENTRYPOINT ["/amflow"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# This is used by GoReleaser. | ||
FROM alpine:3.11 AS final | ||
FROM alpine:3.18 AS final | ||
RUN apk --no-cache add ca-certificates graphviz | ||
COPY amflow / | ||
RUN addgroup -S amflow | ||
RUN adduser -S amflow -G amflow | ||
USER amflow | ||
ENTRYPOINT ["/amflow"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
module github.com/artefactual-labs/amflow | ||
|
||
go 1.15 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/goadesign/goa v1.4.3 | ||
github.com/olekukonko/tablewriter v0.0.5 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/sirupsen/logrus v1.9.3 | ||
github.com/spf13/cobra v1.7.0 | ||
github.com/stretchr/testify v1.8.4 | ||
go.uber.org/multierr v1.11.0 | ||
gonum.org/v1/gonum v0.14.0 | ||
) | ||
|
||
require ( | ||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dimfeld/httppath v0.0.0-20170720192232-ee938bf73598 // indirect | ||
github.com/dimfeld/httptreemux v5.0.1+incompatible // indirect | ||
github.com/goadesign/goa v1.0.1-0.20181221201017-4a2fb392efda | ||
github.com/gobuffalo/packr/v2 v2.7.1 | ||
github.com/gofrs/uuid v4.4.0+incompatible // indirect | ||
github.com/google/gxui v0.0.0-20151028112939-f85e0a97b3a4 // indirect | ||
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect | ||
github.com/hashicorp/go-immutable-radix v1.0.0 // indirect | ||
github.com/hashicorp/go-uuid v1.0.1 // indirect | ||
github.com/jtolds/gls v4.2.1+incompatible // indirect | ||
github.com/hashicorp/golang-lru v0.5.1 // indirect | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d // indirect | ||
github.com/manveru/gobdd v0.0.0-20131210092515-f1a17fdd710b // indirect | ||
github.com/olekukonko/tablewriter v0.0.4 | ||
github.com/mattn/go-runewidth v0.0.9 // indirect | ||
github.com/onsi/ginkgo v1.7.0 // indirect | ||
github.com/onsi/gomega v1.4.3 // indirect | ||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c // indirect | ||
github.com/pkg/errors v0.9.1 | ||
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect | ||
github.com/sirupsen/logrus v1.4.2 | ||
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect | ||
github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c // indirect | ||
github.com/spf13/cobra v0.0.6 | ||
github.com/stretchr/testify v1.5.1 | ||
github.com/pascaldekloe/goe v0.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/smartystreets/goconvey v1.8.1 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/zach-klippenstein/goregen v0.0.0-20160303162051-795b5e3961ea // indirect | ||
go.uber.org/multierr v1.5.0 | ||
golang.org/x/exp v0.0.0-20190316020145-860388717186 // indirect | ||
gonum.org/v1/gonum v0.7.0 | ||
gonum.org/v1/netlib v0.0.0-20190314102120-fc220b4194ca // indirect | ||
golang.org/x/net v0.8.0 // indirect | ||
golang.org/x/sys v0.6.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.