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 - name: push images
image: thegeeklab/drone-docker-buildx image: thegeeklab/drone-docker-buildx
settings: settings:
repo: iamthefij/resticscheduler repo: iamthefij/restic-scheduler
auto_tag: true auto_tag: true
platforms: platforms:
- linux/amd64 - linux/amd64

View File

@ -16,8 +16,8 @@ RUN apk add --no-cache \
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH 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"] 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) VERSION ?= $(shell git describe --tags --dirty)
GOFILES = *.go GOFILES = *.go
# Multi-arch targets are generated from this # Multi-arch targets are generated from this
@ -54,7 +54,7 @@ clean:
## Multi-arch targets ## Multi-arch targets
$(TARGETS): $(GOFILES) $(TARGETS): $(GOFILES)
mkdir -p ./dist 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 \ go build -ldflags '-X "main.version=$(VERSION)"' -a -installsuffix nocgo \
-o $@ -o $@

View File

@ -15,7 +15,7 @@ services:
POSTGRES_DB: main POSTGRES_DB: main
bootstrap: bootstrap:
image: resticscheduler image: restic-scheduler
entrypoint: /bootstrap-tests.sh entrypoint: /bootstrap-tests.sh
environment: environment:
MYSQL_HOST: mysql MYSQL_HOST: mysql
@ -29,7 +29,7 @@ services:
- ./data:/data - ./data:/data
main: main:
image: resticscheduler image: restic-scheduler
environment: environment:
MYSQL_HOST: mysql MYSQL_HOST: mysql
MYSQL_USER: root MYSQL_USER: root
@ -43,7 +43,7 @@ services:
- ./test-backup.hcl:/test-backup.hcl - ./test-backup.hcl:/test-backup.hcl
validate: validate:
image: resticscheduler image: restic-scheduler
entrypoint: /validate-tests.sh entrypoint: /validate-tests.sh
environment: environment:
MYSQL_HOST: mysql MYSQL_HOST: mysql