Rename binary to restic-scheduler everywhere
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2024-11-05 09:22:09 -08:00
parent 42d1f80105
commit d50c825238
4 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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" ]

View File

@ -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 $@

View File

@ -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