2 Commits

Author SHA1 Message Date
Jonas Forsberg
1076dfaff9 fixed clean target and not showing credentials 2023-04-18 14:05:46 +02:00
Jonas Forsberg
883b06c29c bumped TW version 2023-04-18 13:59:35 +02:00

View File

@@ -3,7 +3,7 @@
-include .env
VERSION=20230411
VERSION=20230416
IMAGENAME=restic
REPO=git.rre.nu/jonas
TITLE=restic with openSSH based on openSUSE Tumpleweed
@@ -37,7 +37,7 @@ build:
--label org.opencontainers.image.url="https://${REPO}/-/packages/container/${IMAGENAME}/${VERSION}" \
--label org.opencontainers.image.version="${VERSION}" \
--label org.opencontainers.image.vendor="Jonas Forsberg" \
--tag docker.io/bardak/restic:$(VERSION) \
--tag ${REPO}/${IMAGENAME}:$(VERSION) \
.
clean:
@@ -48,5 +48,6 @@ release: require_clean_git build
git tag -a v$(VERSION) -m "restic version: ${TMP_MESSAGE}"
git push origin v$(VERSION)
podman tag ${REPO}/${IMAGENAME}:$(VERSION) ${REPO}/${IMAGENAME}:latest
podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION)
podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:latest
@ echo "Pushing images"
@ podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:$(VERSION)
@ podman push --creds $(USERNAME):$(PASSWORD) ${REPO}/${IMAGENAME}:latest