Rename binary to restic-scheduler everywhere
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
42d1f80105
commit
d50c825238
@ -65,7 +65,7 @@ steps:
|
||||
- name: push images
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
settings:
|
||||
repo: iamthefij/resticscheduler
|
||||
repo: iamthefij/restic-scheduler
|
||||
auto_tag: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
|
@ -16,8 +16,8 @@ RUN apk add --no-cache \
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
COPY ./dist/resticscheduler-$TARGETOS-$TARGETARCH /bin/resticscheduler
|
||||
COPY ./dist/restic-scheduler-$TARGETOS-$TARGETARCH /bin/restic-scheduler
|
||||
|
||||
HEALTHCHECK CMD ["wget", "-O", "-", "http://localhost:8080/health"]
|
||||
|
||||
ENTRYPOINT [ "/bin/resticscheduler" ]
|
||||
ENTRYPOINT [ "/bin/restic-scheduler" ]
|
||||
|
4
Makefile
4
Makefile
@ -1,4 +1,4 @@
|
||||
APP_NAME = resticscheduler
|
||||
APP_NAME = restic-scheduler
|
||||
VERSION ?= $(shell git describe --tags --dirty)
|
||||
GOFILES = *.go
|
||||
# Multi-arch targets are generated from this
|
||||
@ -54,7 +54,7 @@ clean:
|
||||
## Multi-arch targets
|
||||
$(TARGETS): $(GOFILES)
|
||||
mkdir -p ./dist
|
||||
GOOS=$(word 2, $(subst -, ,$(@))) GOARCH=$(word 3, $(subst -, ,$(@))) CGO_ENABLED=0 \
|
||||
GOOS=$(word 3, $(subst -, ,$(@))) GOARCH=$(word 4, $(subst -, ,$(@))) CGO_ENABLED=0 \
|
||||
go build -ldflags '-X "main.version=$(VERSION)"' -a -installsuffix nocgo \
|
||||
-o $@
|
||||
|
||||
|
@ -15,7 +15,7 @@ services:
|
||||
POSTGRES_DB: main
|
||||
|
||||
bootstrap:
|
||||
image: resticscheduler
|
||||
image: restic-scheduler
|
||||
entrypoint: /bootstrap-tests.sh
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
@ -29,7 +29,7 @@ services:
|
||||
- ./data:/data
|
||||
|
||||
main:
|
||||
image: resticscheduler
|
||||
image: restic-scheduler
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_USER: root
|
||||
@ -43,7 +43,7 @@ services:
|
||||
- ./test-backup.hcl:/test-backup.hcl
|
||||
|
||||
validate:
|
||||
image: resticscheduler
|
||||
image: restic-scheduler
|
||||
entrypoint: /validate-tests.sh
|
||||
environment:
|
||||
MYSQL_HOST: mysql
|
||||
|
Loading…
Reference in New Issue
Block a user