This commit is contained in:
parent
ad8bfda15e
commit
d4782bfae2
46
.drone.yml
46
.drone.yml
@ -62,49 +62,15 @@ steps:
|
|||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
- name: push image - arm
|
- name: push images
|
||||||
image: plugins/docker
|
image: thegeeklab/drone-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
repo: iamthefij/resticscheduler
|
repo: iamthefij/resticscheduler
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: linux-arm
|
platforms:
|
||||||
username:
|
- linux/amd64
|
||||||
from_secret: docker_username
|
- linux/arm64
|
||||||
password:
|
- linux/arm
|
||||||
from_secret: docker_password
|
|
||||||
build_args:
|
|
||||||
- BIN=./dist/resticscheduler-linux-arm
|
|
||||||
|
|
||||||
- name: push image - arm64
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: iamthefij/resticscheduler
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-arm64
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
build_args:
|
|
||||||
- BIN=./dist/resticscheduler-linux-arm64
|
|
||||||
|
|
||||||
- name: push image - amd64
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: iamthefij/resticscheduler
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-amd64
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
|
|
||||||
- name: publish manifest
|
|
||||||
image: plugins/manifest
|
|
||||||
settings:
|
|
||||||
spec: docker-manifest.tmpl
|
|
||||||
auto_tag: true
|
|
||||||
ignore_missing: true
|
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
ARG BIN=./dist/resticscheduler-linux-amd64
|
ARG TARGETOS
|
||||||
COPY ${BIN} /bin/resticscheduler
|
ARG TARGETARCH
|
||||||
|
COPY ./dist/resticscheduler-$TARGETOS-$TARGETARCH /bin/resticscheduler
|
||||||
|
|
||||||
ENTRYPOINT [ "/resticscheduler" ]
|
ENTRYPOINT [ "/resticscheduler" ]
|
||||||
|
4
Makefile
4
Makefile
@ -57,5 +57,5 @@ $(TARGETS): $(GOFILES)
|
|||||||
$(TARGET_ALIAS):
|
$(TARGET_ALIAS):
|
||||||
$(MAKE) $(addprefix dist/,$@)
|
$(MAKE) $(addprefix dist/,$@)
|
||||||
|
|
||||||
$(addprefix docker-,$(TARGET_ALIAS)):
|
# $(addprefix docker-,$(TARGET_ALIAS)):
|
||||||
docker build --build-arg BIN=dist/$(@:docker-%=%) .
|
# docker build --build-arg BIN=dist/$(@:docker-%=%) .
|
||||||
|
Loading…
Reference in New Issue
Block a user