Compare commits
3 Commits
6c13328ee4
...
v20230416
Author | SHA1 | Date | |
---|---|---|---|
|
1076dfaff9 | ||
|
883b06c29c | ||
|
24143adf8a |
11
Makefile
11
Makefile
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-include .env
|
-include .env
|
||||||
|
|
||||||
VERSION=20230411
|
VERSION=20230416
|
||||||
IMAGENAME=restic
|
IMAGENAME=restic
|
||||||
REPO=git.rre.nu/jonas
|
REPO=git.rre.nu/jonas
|
||||||
TITLE=restic with openSSH based on openSUSE Tumpleweed
|
TITLE=restic with openSSH based on openSUSE Tumpleweed
|
||||||
@@ -37,16 +37,17 @@ build:
|
|||||||
--label org.opencontainers.image.url="https://${REPO}/-/packages/container/${IMAGENAME}/${VERSION}" \
|
--label org.opencontainers.image.url="https://${REPO}/-/packages/container/${IMAGENAME}/${VERSION}" \
|
||||||
--label org.opencontainers.image.version="${VERSION}" \
|
--label org.opencontainers.image.version="${VERSION}" \
|
||||||
--label org.opencontainers.image.vendor="Jonas Forsberg" \
|
--label org.opencontainers.image.vendor="Jonas Forsberg" \
|
||||||
--tag docker.io/bardak/restic:$(VERSION) \
|
--tag ${REPO}/${IMAGENAME}:$(VERSION) \
|
||||||
.
|
.
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
podman image rm docker.io/bardak/restic:$(VERSION)
|
podman image rm ${REPO}/${IMAGENAME}:$(VERSION)
|
||||||
|
|
||||||
release: require_clean_git build
|
release: require_clean_git build
|
||||||
$(eval TMP_MESSAGE := $(shell podman run --rm -it ${REPO}/${IMAGENAME}:$(VERSION) /usr/bin/restic --version))
|
$(eval TMP_MESSAGE := $(shell podman run --rm -it ${REPO}/${IMAGENAME}:$(VERSION) /usr/bin/restic --version))
|
||||||
git tag -a v$(VERSION) -m "restic version: ${TMP_MESSAGE}"
|
git tag -a v$(VERSION) -m "restic version: ${TMP_MESSAGE}"
|
||||||
git push origin v$(VERSION)
|
git push origin v$(VERSION)
|
||||||
podman tag ${REPO}/${IMAGENAME}:$(VERSION) ${REPO}/${IMAGENAME}:latest
|
podman tag ${REPO}/${IMAGENAME}:$(VERSION) ${REPO}/${IMAGENAME}:latest
|
||||||
podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION)
|
@ echo "Pushing images"
|
||||||
podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:latest
|
@ podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION)
|
||||||
|
@ podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:latest
|
||||||
|
Reference in New Issue
Block a user