Merge branch 'main' into dev
2 files · +6 -13
M .goreleaser.yaml +5 -5
| @@ -1,3 +1,5 @@ | |||
| 1 | + | version: 2 | |
| 2 | + | ||
| 1 | 3 | before: | |
| 2 | 4 | hooks: | |
| 3 | 5 | - go mod tidy | |
| @@ -27,13 +29,12 @@ dockers: | |||
| 27 | 29 | build_flag_templates: | |
| 28 | 30 | - "--pull" | |
| 29 | 31 | - "--platform=linux/amd64" | |
| 32 | + | - "--build-arg=ARCH=amd64" | |
| 30 | 33 | - "--label=org.opencontainers.image.created={{.Date}}" | |
| 31 | 34 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | |
| 32 | 35 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | |
| 33 | 36 | - "--label=org.opencontainers.image.version={{.Version}}" | |
| 34 | 37 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | |
| 35 | - | extra_files: | |
| 36 | - | - .iscontainer | |
| 37 | 38 | - image_templates: | |
| 38 | 39 | - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64" | |
| 39 | 40 | use: buildx | |
| @@ -42,13 +43,12 @@ dockers: | |||
| 42 | 43 | build_flag_templates: | |
| 43 | 44 | - "--pull" | |
| 44 | 45 | - "--platform=linux/arm64" | |
| 46 | + | - "--build-arg=ARCH=arm64" | |
| 45 | 47 | - "--label=org.opencontainers.image.created={{.Date}}" | |
| 46 | 48 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | |
| 47 | 49 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | |
| 48 | 50 | - "--label=org.opencontainers.image.version={{.Version}}" | |
| 49 | 51 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | |
| 50 | - | extra_files: | |
| 51 | - | - .iscontainer | |
| 52 | 52 | ||
| 53 | 53 | archives: | |
| 54 | 54 | - format: zip | |
| @@ -59,4 +59,4 @@ changelog: | |||
| 59 | 59 | filters: | |
| 60 | 60 | exclude: | |
| 61 | 61 | - "^docs:" | |
| 62 | - | - "^test:"⏎̸ | |
| 62 | + | - "^test:" | |
| @@ -1,3 +1,5 @@ | |||||
| 1 | + | version: 2 | |||
| 2 | + | ||||
| 1 | before: | 3 | before: | ||
| 2 | hooks: | 4 | hooks: | ||
| 3 | - go mod tidy | 5 | - go mod tidy | ||
| @@ -27,13 +29,12 @@ dockers: | |||||
| 27 | build_flag_templates: | 29 | build_flag_templates: | ||
| 28 | - "--pull" | 30 | - "--pull" | ||
| 29 | - "--platform=linux/amd64" | 31 | - "--platform=linux/amd64" | ||
| 32 | + | - "--build-arg=ARCH=amd64" | |||
| 30 | - "--label=org.opencontainers.image.created={{.Date}}" | 33 | - "--label=org.opencontainers.image.created={{.Date}}" | ||
| 31 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | 34 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
| 32 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | 35 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
| 33 | - "--label=org.opencontainers.image.version={{.Version}}" | 36 | - "--label=org.opencontainers.image.version={{.Version}}" | ||
| 34 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | 37 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | ||
| 35 | - | extra_files: | |||
| 36 | - | - .iscontainer | |||
| 37 | - image_templates: | 38 | - image_templates: | ||
| 38 | - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64" | 39 | - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64" | ||
| 39 | use: buildx | 40 | use: buildx | ||
| @@ -42,13 +43,12 @@ dockers: | |||||
| 42 | build_flag_templates: | 43 | build_flag_templates: | ||
| 43 | - "--pull" | 44 | - "--pull" | ||
| 44 | - "--platform=linux/arm64" | 45 | - "--platform=linux/arm64" | ||
| 46 | + | - "--build-arg=ARCH=arm64" | |||
| 45 | - "--label=org.opencontainers.image.created={{.Date}}" | 47 | - "--label=org.opencontainers.image.created={{.Date}}" | ||
| 46 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | 48 | - "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
| 47 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | 49 | - "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
| 48 | - "--label=org.opencontainers.image.version={{.Version}}" | 50 | - "--label=org.opencontainers.image.version={{.Version}}" | ||
| 49 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | 51 | - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon" | ||
| 50 | - | extra_files: | |||
| 51 | - | - .iscontainer | |||
| 52 | 52 | ||||
| 53 | archives: | 53 | archives: | ||
| 54 | - format: zip | 54 | - format: zip | ||
| @@ -59,4 +59,4 @@ changelog: | |||||
| 59 | filters: | 59 | filters: | ||
| 60 | exclude: | 60 | exclude: | ||
| 61 | - "^docs:" | 61 | - "^docs:" | ||
| 62 | - | - "^test:"⏎̸ | 62 | + | - "^test:" |
M Dockerfile +1 -8
| @@ -1,15 +1,8 @@ | |||
| 1 | - | # Start from scratch | |
| 2 | 1 | FROM alpine:latest | |
| 3 | 2 | ||
| 4 | - | ARG ARCH | |
| 3 | + | COPY gordon /gordon | |
| 5 | 4 | ||
| 6 | - | # Copy the pre-built binary for the specific architecture | |
| 7 | - | COPY dist/gordon-linux-${ARCH} /gordon | |
| 8 | - | # Create the .iscontainer file | |
| 9 | 5 | RUN touch /.iscontainer | |
| 10 | 6 | ||
| 11 | - | # Set the entrypoint | |
| 12 | 7 | ENTRYPOINT ["/gordon"] | |
| 13 | - | ||
| 14 | - | # Default command | |
| 15 | 8 | CMD ["serve"] | |
| @@ -1,15 +1,8 @@ | |||||
| 1 | - | # Start from scratch | |||
| 2 | FROM alpine:latest | 1 | FROM alpine:latest | ||
| 3 | 2 | ||||
| 4 | - | ARG ARCH | 3 | + | COPY gordon /gordon |
| 5 | 4 | ||||
| 6 | - | # Copy the pre-built binary for the specific architecture | |||
| 7 | - | COPY dist/gordon-linux-${ARCH} /gordon | |||
| 8 | - | # Create the .iscontainer file | |||
| 9 | RUN touch /.iscontainer | 5 | RUN touch /.iscontainer | ||
| 10 | 6 | ||||
| 11 | - | # Set the entrypoint | |||
| 12 | ENTRYPOINT ["/gordon"] | 7 | ENTRYPOINT ["/gordon"] | ||
| 13 | - | ||||
| 14 | - | # Default command | |||
| 15 | CMD ["serve"] | 8 | CMD ["serve"] | ||