Initial commit, taken from https://github.com/AlphaJack/docker-alps
This commit is contained in:
commit
f2ddca44b1
22
.drone-manifest.yml
Normal file
22
.drone-manifest.yml
Normal file
@ -0,0 +1,22 @@
|
||||
image: nemunaire/alps:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||
{{#if build.tags}}
|
||||
tags:
|
||||
{{#each build.tags}}
|
||||
- {{this}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
manifests:
|
||||
- image: nemunaire/alps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
- image: nemunaire/alps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||
platform:
|
||||
architecture: arm64
|
||||
os: linux
|
||||
variant: v8
|
||||
- image: nemunaire/alps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
||||
platform:
|
||||
architecture: arm
|
||||
os: linux
|
||||
variant: v7
|
71
.drone.yml
Normal file
71
.drone.yml
Normal file
@ -0,0 +1,71 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: docker build and publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nemunaire/alps
|
||||
auto_tag: true
|
||||
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-arm64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: docker build and publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: nemunaire/alps
|
||||
auto_tag: true
|
||||
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: docker-manifest
|
||||
steps:
|
||||
- name: publish manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
auto_tag: true
|
||||
ignore_missing: true
|
||||
spec: .drone-manifest.yml
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- build-amd64
|
||||
- build-arm64
|
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
# build
|
||||
FROM golang:1-alpine AS build
|
||||
WORKDIR /alps
|
||||
|
||||
RUN apk add --no-cache git && \
|
||||
git clone https://git.sr.ht/~migadu/alps . && \
|
||||
CGO_ENABLED=0 go build -tags netgo -v -a -ldflags '-extldflags "-static"' -o "alps" cmd/alps/main.go
|
||||
|
||||
# release
|
||||
FROM alpine:3 AS release
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=build ./alps/alps ./alps
|
||||
COPY --from=build ./alps/themes/ ./themes
|
||||
COPY --from=build ./alps/plugins/ ./plugins
|
||||
COPY ./init ./init
|
||||
|
||||
LABEL org.opencontainers.image.source=https://git.nemunai.re/nemunaire/docker-alps
|
||||
|
||||
EXPOSE 1323
|
||||
|
||||
HEALTHCHECK CMD wget --spider http://127.0.0.1:1323/
|
||||
|
||||
ENTRYPOINT ["/init"]
|
Loading…
x
Reference in New Issue
Block a user