Add kubectl
Build restic container / Build image (push) Failing after 9s
Details
Build restic container / Build image (push) Failing after 9s
Details
This commit is contained in:
parent
58ae7a3c72
commit
42d8031cf1
|
@ -24,8 +24,12 @@ jobs:
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cat VERSION)
|
source .env
|
||||||
docker build --build-arg="RESTIC_VERSION=${VERSION}" -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
|
docker build \
|
||||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}
|
--build-arg="RESTIC_VERSION=${RESTIC_VERSION}" \
|
||||||
|
--build-arg="KUBECTL_VERSION=${KUBECTL_VERSION}" \
|
||||||
|
-t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${RESTIC_VERSION} \
|
||||||
|
-t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
|
||||||
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${RESTIC_VERSION}
|
||||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|
||||||
|
|
|
@ -2,6 +2,6 @@ FROM alpine:3
|
||||||
|
|
||||||
ARG RESTIC_VERSION
|
ARG RESTIC_VERSION
|
||||||
|
|
||||||
RUN apk add restic=${RESTIC_VERSION} --no-cache
|
RUN apk add restic=${RESTIC_VERSION} kubectl=${KUBECTL_VERSION} --no-cache
|
||||||
ENTRYPOINT ["/usr/bin/restic"]
|
ENTRYPOINT ["/usr/bin/restic"]
|
||||||
CMD ["--help"]
|
CMD ["--help"]
|
|
@ -1,3 +1,3 @@
|
||||||
# restic
|
# restic
|
||||||
|
|
||||||
Restic container for backing up k3s volumes
|
Restic container with kubectl for backing up k3s volumes
|
Loading…
Reference in New Issue