Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #321 from acouvreur/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
acouvreur authored Jun 17, 2024
2 parents 9be1880 + acd47e4 commit 0f58751
Show file tree
Hide file tree
Showing 69 changed files with 3,639 additions and 1,889 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:1.21-bookworm",
"image": "mcr.microsoft.com/devcontainers/go:1.22-bookworm",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
},
"ghcr.io/devcontainers/features/docker-in-docker:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/go:1": {}
},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22
cache-dependency-path: go.sum

- name: Build
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
cache-dependency-path: plugins/traefik/go.sum

- name: Build
Expand All @@ -63,10 +63,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
cache-dependency-path: |
go.sum
plugins/traefik/go.sum
Expand Down Expand Up @@ -98,10 +98,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
cache-dependency-path: |
go.sum
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
cache-dependency-path: plugins/caddy/go.sum

- name: Build
Expand Down Expand Up @@ -180,10 +180,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
cache-dependency-path: |
go.sum
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Set up Go 1.21
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: ^1.21
go-version: ^1.22

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS build
FROM golang:1.22 AS build

WORKDIR /src
RUN go env -w GOMODCACHE=/root/.cache/go-build
Expand All @@ -18,12 +18,13 @@ ARG TARGETARCH
RUN --mount=type=cache,target=/root/.cache/go-build \
make BUILDTIME=${BUILDTIME} VERSION=${VERSION} GIT_REVISION=${REVISION} ${TARGETOS}/${TARGETARCH}

FROM alpine:3.19.1
FROM alpine:3.20.0

RUN mkdir -p /etc/sablier/themes
EXPOSE 10000

COPY --from=build /src/sablier* /etc/sablier/sablier
COPY docker/sablier.yaml /etc/sablier/sablier.yaml

EXPOSE 10000

ENTRYPOINT [ "/etc/sablier/sablier" ]
CMD [ "--configFile=/etc/sablier/sablier.yaml", "start" ]
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ build:
test:
go test -v ./...

plugins: build-plugin-traefik test-plugin-traefik build-plugin-caddy test-plugin-caddy

build-plugin-traefik:
cd plugins/traefik && go build -v .

test-plugin-traefik:
cd plugins/traefik && go test -v ./...

build-plugin-caddy:
cd plugins/caddy && go build -v .

test-plugin-caddy:
cd plugins/caddy && go test -v .

.PHONY: docker
docker:
docker build -t acouvreur/sablier:local .
Expand Down
111 changes: 0 additions & 111 deletions app/http/pages/render.go

This file was deleted.

Loading

0 comments on commit 0f58751

Please sign in to comment.