Add docker builds
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2022-04-04 20:25:05 -07:00
parent f064b2de12
commit 2ef3202af8
2 changed files with 51 additions and 0 deletions

View File

@ -60,6 +60,54 @@ steps:
when: when:
event: tag event: tag
- name: push image - arm
image: plugins/docker
settings:
repo: iamthefij/resticscheduler
auto_tag: true
auto_tag_suffix: linux-arm
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- ARCH=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:
- ARCH=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:
from_secret: docker_username
password:
from_secret: docker_password
--- ---
kind: pipeline kind: pipeline
name: notify name: notify

View File

@ -56,3 +56,6 @@ $(TARGETS): $(GOFILES)
.PHONY: $(TARGET_ALIAS) .PHONY: $(TARGET_ALIAS)
$(TARGET_ALIAS): $(TARGET_ALIAS):
$(MAKE) $(addprefix dist/,$@) $(MAKE) $(addprefix dist/,$@)
$(addprefix docker-,$(TARGET_ALIAS)):
docker build --build-arg BIN=dist/$(@:docker-%=%) .