Compare commits

..

75 Commits

Author SHA1 Message Date
dependabot[bot] b2b5d7d736 build(deps): bump alpine from 3.22.1 to 3.22.2 (#119) 2025-10-11 06:44:30 +00:00
Fabian Peter Hammerle 75d98dd688 upgrade tor package from v0.4.8.18-r2 to v0.4.8.19-r0
https://web.archive.org/web/20251011051716/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
2025-10-11 07:19:03 +02:00
Fabian Peter Hammerle 3e96a79a54 upgrade tor package from v0.4.8.17-r0 to v0.4.8.18-r2
https://web.archive.org/web/20250927054048/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes

https://git.alpinelinux.org/aports/commit/community/tor?h=3.22-stable&id=381c9d8a32a57b146a50230d3ed2c4dd622f69b7
https://git.alpinelinux.org/aports/commit/community/tor?h=3.22-stable&id=a67443520d6598cd0381fc1fe8e537dc8f4e551c
https://git.alpinelinux.org/aports/commit/community/tor?h=3.22-stable&id=378df2c48f8968fd2d62786f76c3c6db30619186
2025-09-27 07:49:46 +02:00
dependabot[bot] c4322d0daa build(deps): bump alpine from 3.22.0 to 3.22.1 (#118) 2025-07-19 14:23:12 +00:00
Fabian Peter Hammerle 80a67ed4bd remove makefile for building container image (superseded by pipeline pushing to ghcr.io)
https://github.com/fphammerle/docker-postfix/commit/56b31b509f44c376ac199c96655b08f5c079997b
https://github.com/fphammerle/docker-postsrsd/commit/c3af62b8f6434bb85127279de896096d9c207106
2025-07-05 08:18:32 +02:00
Fabian Peter Hammerle 81e3a716a8 github pipeline: push multi-arch container image to ghcr.io
https://github.com/fphammerle/systemctl-mqtt/commit/53f0033606bf64efaa71a280f5dedb12bbfe17d3
https://github.com/fphammerle/systemctl-mqtt/commit/c3f74a933bdbbdfe58a9afb2a6e8e33db88f9c65
https://github.com/fphammerle/docker-postfix/commit/d3511fc5941d9f15bf6a066bc0313749740c7581
https://github.com/fphammerle/docker-radicale/commit/8418a5d1eb1ace8cd5ab3bd01f1248d16e48d5c5
https://github.com/fphammerle/docker-postsrsd/commit/dccb24fdbc115c21827f43dc1d1ea2bb785f6747
2025-07-05 08:16:23 +02:00
Fabian Peter Hammerle 81cb2dc002 upgrade tor package from v0.4.8.16-r0 to v0.4.8.17-r0
https://web.archive.org/web/20250705061052/https://gitlab.torproject.org/tpo/core/tor/-/raw/HEAD/ChangeLog
2025-07-05 08:10:06 +02:00
dependabot[bot] f496559f8a build(deps): bump docker/setup-buildx-action from 3.10.0 to 3.11.1 (#117) 2025-06-22 06:58:41 +00:00
Fabian Peter Hammerle c49728f883 upgrade alpine base image from 3.21.3 to 3.22.0 including upgrade of nftables package 2025-06-22 08:52:15 +02:00
dependabot[bot] ec76cf56be build(deps): bump docker/build-push-action from 6.17.0 to 6.18.0 (#115) 2025-05-30 15:23:34 +00:00
dependabot[bot] f6117f51d7 build(deps): bump docker/build-push-action from 6.16.0 to 6.17.0 (#114) 2025-05-16 14:52:14 +00:00
dependabot[bot] a5ff464c1f build(deps): bump docker/build-push-action from 6.15.0 to 6.16.0 (#113) 2025-04-25 17:28:23 +00:00
Fabian Peter Hammerle e4db677aea upgrade tor package from v0.4.8.15-r0 to v0.4.8.16-r0 2025-04-19 16:01:48 +02:00
Fabian Peter Hammerle dc991b8f9f pipeline: upgrade runner from ubuntu v20.04 to v24.04 2025-04-19 16:00:47 +02:00
Fabian Peter Hammerle 6f3bfc47c8 upgrade tor package to v0.4.8.15-r0 2025-03-22 07:50:28 +01:00
dependabot[bot] 8c9146e9b2 build(deps): bump docker/setup-qemu-action from 3.4.0 to 3.6.0 (#112) 2025-03-07 08:22:36 +00:00
dependabot[bot] 65760c9a5f build(deps): bump docker/build-push-action from 6.13.0 to 6.15.0 (#109) 2025-03-07 06:34:49 +00:00
dependabot[bot] 2e25f7b4d0 build(deps): bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#111) 2025-03-07 06:34:18 +00:00
dependabot[bot] a99e1b1d6e build(deps): bump alpine from 3.21.2 to 3.21.3 (#108) 2025-02-28 10:12:02 +00:00
Fabian Peter Hammerle 210553450e upgrade tor package from v0.4.8.14-r0 to v0.4.8.14-r1 2025-02-28 11:06:54 +01:00
dependabot[bot] c861ddfe66 build(deps): bump docker/setup-buildx-action from 3.8.0 to 3.9.0 (#105) 2025-02-08 16:18:37 +00:00
dependabot[bot] 0de0bbb77e build(deps): bump docker/setup-qemu-action from 3.3.0 to 3.4.0 (#106) 2025-02-08 16:16:31 +00:00
Fabian Peter Hammerle 10ef523f2c upgrade tor package from v0.4.8.13-r0 to v0.4.8.14-r0 2025-02-08 16:34:26 +01:00
dependabot[bot] 33e18d159f build(deps): bump docker/build-push-action from 6.12.0 to 6.13.0 (#104) 2025-02-07 10:47:29 +00:00
dependabot[bot] dc3072d76c build(deps): bump docker/build-push-action from 6.11.0 to 6.12.0 (#103) 2025-01-24 22:55:00 +00:00
dependabot[bot] 0ddc14dcd4 build(deps): bump docker/build-push-action from 6.10.0 to 6.11.0 (#101) 2025-01-10 09:26:15 +00:00
dependabot[bot] b18e520e0e build(deps): bump docker/setup-qemu-action from 3.2.0 to 3.3.0 (#100) 2025-01-10 09:26:05 +00:00
dependabot[bot] 0a7211e533 build(deps): bump alpine from 3.21.0 to 3.21.2 (#102) 2025-01-10 09:24:21 +00:00
dependabot[bot] ffb7072ab7 build(deps): bump docker/setup-buildx-action from 3.7.1 to 3.8.0 (#99) 2024-12-28 07:48:22 +00:00
Fabian Peter Hammerle 3930cc0531 upgrade alpine base image from v3.20.3 to v3.21.0 including upgrade of nftables package
https://www.netfilter.org/projects/nftables/files/changes-nftables-1.1.0.txt
https://www.netfilter.org/projects/nftables/files/changes-nftables-1.1.1.txt

https://git.alpinelinux.org/aports/commit/main/nftables?h=3.21-stable&id=e7564b0daa13dd62a57cf9cfc1b6becfa7080e17
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.21-stable&id=5bb85d05f6b54f3590c43fa68781454b8f6be4bb
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.21-stable&id=40fd41dc44cf5714cee257d9d08e23de4825286a
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.21-stable&id=09bef361118bc0aba4bb2571ae665485ce9eff40
2024-12-07 13:03:09 +01:00
dependabot[bot] bd22db01c1 build(deps): bump docker/build-push-action from 6.9.0 to 6.10.0 (#97) 2024-12-06 07:46:28 +00:00
Fabian Peter Hammerle cd2b43491a upgrade tor package from v0.4.8.12-r0 to v0.4.8.13-r0
https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://git.alpinelinux.org/aports/commit/community/tor?h=3.20-stable&id=9fcc0b088ec6fab5b42a1f29647f80b7c8149a52

https://github.com/fphammerle/docker-onion-service/commit/b6680d810302d49c7bf0f8f6f2ffbc753dac35e5
2024-10-26 23:44:30 +02:00
dependabot[bot] cc89b50555 build(deps): bump docker/build-push-action from 6.7.0 to 6.9.0 (#95) 2024-10-11 04:54:12 +00:00
dependabot[bot] 7319585a07 build(deps): bump docker/setup-buildx-action from 3.6.1 to 3.7.1 (#96) 2024-10-11 04:52:07 +00:00
dependabot[bot] 17ae2522c8 build(deps): bump alpine from 3.20.2 to 3.20.3 (#94) 2024-09-13 17:20:18 +00:00
dependabot[bot] 7cdb067ebb build(deps): bump docker/build-push-action from 6.6.1 to 6.7.0 (#92) 2024-08-16 23:09:59 +00:00
dependabot[bot] 3bb90431a7 build(deps): bump docker/build-push-action from 6.5.0 to 6.6.1 (#91) 2024-08-09 09:38:38 +00:00
dependabot[bot] a883694111 build(deps): bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#90) 2024-08-02 12:47:28 +00:00
dependabot[bot] 51fb298bf3 build(deps): bump docker/setup-qemu-action from 3.1.0 to 3.2.0 (#88) 2024-07-26 09:37:22 +00:00
dependabot[bot] 8d58e418b4 build(deps): bump docker/setup-buildx-action from 3.4.0 to 3.5.0 (#87) 2024-07-26 09:31:41 +00:00
dependabot[bot] fc6033540d build(deps): bump docker/build-push-action from 6.4.1 to 6.5.0 (#86) 2024-07-26 09:30:00 +00:00
dependabot[bot] 9ffb7a5ae2 build(deps): bump alpine from 3.20.1 to 3.20.2 (#89) 2024-07-26 09:29:57 +00:00
dependabot[bot] 28d6495a25 build(deps): bump docker/build-push-action from 6.3.0 to 6.4.1 (#85) 2024-07-19 12:22:36 +00:00
dependabot[bot] eaba396a4b build(deps): bump docker/setup-qemu-action from 3.0.0 to 3.1.0 (#82) 2024-07-05 13:18:50 +00:00
dependabot[bot] 4d98d49b80 build(deps): bump docker/setup-buildx-action from 3.3.0 to 3.4.0 (#83) 2024-07-05 13:17:05 +00:00
dependabot[bot] ed260b122f build(deps): bump docker/build-push-action from 6.2.0 to 6.3.0 (#84) 2024-07-05 13:16:55 +00:00
dependabot[bot] 99358244a4 build(deps): bump docker/build-push-action from 6.1.0 to 6.2.0 (#81) 2024-06-28 09:25:56 +00:00
dependabot[bot] 39de028fde build(deps): bump alpine from 3.20.0 to 3.20.1 (#79) 2024-06-21 10:55:08 +00:00
dependabot[bot] 6edbec6dce build(deps): bump docker/build-push-action from 5.4.0 to 6.1.0 (#80) 2024-06-21 10:53:40 +00:00
dependabot[bot] e86daafa6a build(deps): bump docker/build-push-action from 5.3.0 to 5.4.0 (#78) 2024-06-14 15:34:23 +00:00
Fabian Peter Hammerle 98a4198420 upgrade tor package from v0.4.8.11-r0 to v0.4.8.12-r0
https://web.archive.org/web/20240614151854/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://web.archive.org/web/20240614152110/https://git.alpinelinux.org/aports/commit/community/tor?h=3.20-stable&id=5c45422c5535ef5ff4314fe6e948fcc777e4ca04

https://github.com/fphammerle/docker-onion-service/commit/7213de1362f9648339643645b9a522edef64b5f2
2024-06-14 17:25:35 +02:00
Fabian Peter Hammerle 6392c86118 upgrade alpine base image from v3.19.1 to v3.20.0 including upgrade of nftables package
https://web.archive.org/web/20240525190356/https://git.alpinelinux.org/aports/commit/main/nftables?h=3.20-stable&id=fc95c59998285564fbcb0bfb2443898c62e10171
https://web.archive.org/web/20240525190409/https://git.alpinelinux.org/aports/commit/main/nftables?h=3.20-stable&id=bdeb5ac39445d803f7d97bb9b3cf9171d9a35f52
2024-05-25 21:06:27 +02:00
dependabot[bot] 950251ff71 build(deps): bump alpine from 3.19.1 to 3.20.0
Bumps alpine from 3.19.1 to 3.20.0.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-24 08:18:08 +00:00
dependabot[bot] c7f9b729c8 build(deps): bump docker/setup-buildx-action from 3.2.0 to 3.3.0 (#76) 2024-04-12 09:33:57 +00:00
Fabian Peter Hammerle e252e39445 upgrade tor package from v0.4.8.10-r0 to v0.4.8.11-r0
https://web.archive.org/web/20240412093057/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://web.archive.org/web/20240412093107/https://git.alpinelinux.org/aports/commit/community/tor?h=3.19-stable&id=c753430121779dd525a8f703acd8abb07994224f
2024-04-12 11:30:09 +02:00
dependabot[bot] 2b45c7eaff build(deps): bump docker/setup-buildx-action from 3.1.0 to 3.2.0 (#74) 2024-03-15 08:34:43 +00:00
dependabot[bot] 2fdf1952a0 build(deps): bump docker/build-push-action from 5.2.0 to 5.3.0 (#75) 2024-03-15 08:33:18 +00:00
dependabot[bot] 38b9722271 build(deps): bump docker/build-push-action from 5.1.0 to 5.2.0 (#73) 2024-03-08 08:50:49 +00:00
dependabot[bot] 80c4ebc19c build(deps): bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#72) 2024-03-01 17:36:31 +00:00
dependabot[bot] 953712d3e4 build(deps): bump alpine from 3.19.0 to 3.19.1 (#71) 2024-02-02 20:42:29 +00:00
Fabian Peter Hammerle e5321bf1ad upgrade nftables package from v1.0.9-r0 to 1.0.9-r1
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.19-stable&id=ecb54b13e0afdc46dcff214c91d3089c82b879f3
2024-01-19 21:39:21 +01:00
Fabian Peter Hammerle 747bc80e9f upgrade alpine base image from v3.18.5 to v3.19.0 including upgrade of nftables package from v1.0.7-r2 to v1.0.9-r0
https://www.netfilter.org/projects/nftables/files/changes-nftables-1.0.8.txt
https://www.netfilter.org/projects/nftables/files/changes-nftables-1.0.9.txt
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.19-stable&id=fd5766ba2ab2543db15da4da8c4e9cded3360c53
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.19-stable&id=e4b1a4d9d7ac4ee3a3f17014822d1f04628ef85b
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.19-stable&id=fed26cb955a163315a8c657ae44812011b8f0693
https://git.alpinelinux.org/aports/commit/main/nftables?h=3.19-stable&id=90bf73935d51b4c65fcf16bf8946b35e64eb7b59
2023-12-10 10:34:03 +01:00
Fabian Peter Hammerle 6f1979e4f4 upgrade tor package from v0.4.8.9-r0 to v0.4.8.10-r0 (TROVE-2023-006)
https://web.archive.org/web/20231210091953/https://gitlab.torproject.org/tpo/core/tor/-/raw/HEAD/ChangeLog
https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=a3e305d65f1b0e035696d16cd355d9b21d834990
2023-12-10 10:19:07 +01:00
dependabot[bot] baaaaef20e build(deps): bump alpine from 3.18.4 to 3.18.5 (#69) 2023-12-01 21:47:55 +00:00
dependabot[bot] ec94825693 build(deps): bump docker/build-push-action from 5.0.0 to 5.1.0 (#68) 2023-11-24 08:22:45 +00:00
dependabot[bot] 448c99f454 build(deps): bump docker/setup-qemu-action from 2.2.0 to 3.0.0 (#64) 2023-11-17 15:27:41 +00:00
Fabian Peter Hammerle 9383f533ff upgrade tor package from v0.4.8.7-r0 to v0.4.8.9-r0
https://web.archive.org/web/20231112171524/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://web.archive.org/web/20231112171500/https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=1bd4c2055fffdacb5b82d1db27d97db0be058074
https://web.archive.org/web/20231112171550/https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=bb1cebd00ed1020e74fe4ddca975d3b8d18d8e57
2023-11-12 18:16:47 +01:00
dependabot[bot] fa0c0dcd17 build(deps): bump alpine from 3.18.3 to 3.18.4 (#67) 2023-09-30 06:10:35 +00:00
Fabian Peter Hammerle 84a0d60dd7 upgrade tor package from v0.4.8.6-r0 to v0.4.8.7-r0
https://web.archive.org/web/20230930060601/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://web.archive.org/web/20230930060612/https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=56ad4ee51494157234ed88ed0781c94269ea48f8
2023-09-30 08:06:54 +02:00
Fabian Peter Hammerle 9727958cc0 upgrade tor package from v0.4.8.5-r0 to v0.4.8.6-r0
https://web.archive.org/web/20230923060831/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes

https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=a4924d2d26cbb06f43521137691a9b1ed7ccf2f6
2023-09-23 08:07:09 +02:00
dependabot[bot] 2d82be5ad5 build(deps): bump docker/build-push-action from 4.2.0 to 5.0.0 (#65) 2023-09-15 13:43:24 +00:00
dependabot[bot] de4a8a4eac build(deps): bump docker/setup-buildx-action from 2.10.0 to 3.0.0 (#66) 2023-09-15 08:58:33 +00:00
dependabot[bot] c3cb6d2db2 build(deps): bump docker/build-push-action from 4.1.1 to 4.2.0 (#63) 2023-09-08 11:28:14 +00:00
dependabot[bot] 7fa7e3c072 build(deps): bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#62) 2023-09-02 07:36:15 +00:00
Fabian Peter Hammerle 204fc0e870 upgrade tor package from v0.4.8.4-r0 to v0.4.8.5-r0
https://web.archive.org/web/20230902071518/https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
https://web.archive.org/web/20230902071527/https://git.alpinelinux.org/aports/commit/community/tor?h=3.18-stable&id=2864c238df9d180dff584208bb63b46d3e639ef2
2023-09-02 09:12:38 +02:00
3 changed files with 44 additions and 50 deletions
+37 -7
View File
@@ -1,5 +1,4 @@
# sync with https://github.com/fphammerle/docker-onion-service/blob/master/.github/workflows/container-image.yml
---
name: container image
on:
@@ -10,17 +9,48 @@ on:
jobs:
docker-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions: {packages: write}
steps:
- uses: docker/setup-qemu-action@v2.2.0
- uses: docker/setup-buildx-action@v2.9.1
- id: meta
# > "automatic" tag management and OCI Image Format Spec… for labels
# https://web.archive.org/web/20250103123053/https://docs.docker.com/build/ci/github-actions/manage-tags-labels/
uses: docker/metadata-action@v5
with:
# see comment on `push: true` below
images: ghcr.io/${{ github.repository_owner }}/tor-proxy
# https://web.archive.org/web/20250103130404/https://github.com/docker/metadata-action?tab=readme-ov-file#tags-input
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,format=long
type=raw,value=latest,enable=false
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3.11.1
# > By default, this action uses the Git context so you don't need to use
# > the actions/checkout action to checkout the repository because this
# > will be done directly by buildkit. [...]
# > any file mutation in the steps that precede [...] will be ignored
# > any file mutation in the steps that precede [...] will be ignored,
# > including processing of the .dockerignore file
# https://github.com/marketplace/actions/build-and-push-docker-images
- uses: docker/build-push-action@v4.1.1
# > The commit history is not preserved.
# https://docs.docker.com/engine/reference/commandline/build/#git-repositories
- uses: docker/build-push-action@v6.18.0
with:
platforms: |
linux/amd64
linux/arm/v6
linux/arm/v7
linux/arm64
# > Require approval for all external contributors
# > All users that are not a member or owner of this repository will
# > require approval to run workflows.
# https://github.com/fphammerle/docker-tor-proxy/settings/actions
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+7 -4
View File
@@ -1,10 +1,13 @@
FROM docker.io/alpine:3.18.3
FROM docker.io/alpine:3.22.2
# https://gitweb.torproject.org/tor.git/plain/ChangeLog
# https://git.alpinelinux.org/aports/log/community/tor?h=3.18-stable
ARG TOR_PACKAGE_VERSION=0.4.8.4-r0
# https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
# https://git.alpinelinux.org/aports/log/community/tor?h=3.22-stable
ARG TOR_PACKAGE_VERSION=0.4.8.19-r0
# nftables + dependencies add 2.3MB to image
ARG NFTABLES_PACKAGE_VERSION=1.0.7-r2
# https://www.netfilter.org/projects/nftables/downloads.html
# https://git.alpinelinux.org/aports/log/main/nftables?h=3.22-stable
ARG NFTABLES_PACKAGE_VERSION=1.1.3-r0
RUN apk add --no-cache \
nftables=$NFTABLES_PACKAGE_VERSION \
tor=$TOR_PACKAGE_VERSION
-39
View File
@@ -1,39 +0,0 @@
IMAGE_NAME := docker.io/fphammerle/tor-proxy
PROJECT_VERSION = $(shell git describe --match=v* --abbrev=0 --dirty | sed -e 's/^v//')
TOR_PACKAGE_VERSION = $(shell grep -Po 'TOR_PACKAGE_VERSION=\K.+' Dockerfile | tr -d -)
ARCH = $(shell arch)
# architecture[arm_variant]
# https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md#image-index-property-descriptions
IMAGE_TAG_ARCH_aarch64 = arm64
IMAGE_TAG_ARCH_armv6l = armv6
IMAGE_TAG_ARCH_armv7l = armv7
IMAGE_TAG_ARCH_x86_64 = amd64
IMAGE_TAG_ARCH = ${IMAGE_TAG_ARCH_${ARCH}}
MANIFEST_TAG = ${PROJECT_VERSION}-tor${TOR_PACKAGE_VERSION}
IMAGE_TAG = ${MANIFEST_TAG}-${IMAGE_TAG_ARCH}
BUILD_PARAMS = --tag="${IMAGE_NAME}:${IMAGE_TAG}" \
--build-arg=REVISION="$(shell git rev-parse HEAD)"
.PHONY: worktree-clean docker-build podman-build docker-push docker-manifest-push
worktree-clean:
git diff --exit-code
git diff --staged --exit-code
docker-build: worktree-clean
sudo docker build ${BUILD_PARAMS} .
podman-build: worktree-clean
# --format=oci (default) not fully supported by hub.docker.com
# https://github.com/docker/hub-feedback/issues/1871#issuecomment-748924149
podman build --format=docker ${BUILD_PARAMS} .
docker-push: docker-build
sudo docker push "${IMAGE_NAME}:${IMAGE_TAG}"
@echo git tag --sign --message '$(shell sudo docker image inspect --format '{{join .RepoDigests "\n"}}' "${IMAGE_NAME}:${IMAGE_TAG}" | sed "s/@/:${IMAGE_TAG}@/")' docker/${IMAGE_TAG} $(shell git rev-parse HEAD)
docker-manifest-push:
git tag | grep '^docker/${MANIFEST_TAG}-' | xargs -L1 -t git tag -v \
| grep @sha256: | xargs -t sudo docker manifest create "${IMAGE_NAME}:${MANIFEST_TAG}"
sudo docker manifest push "${IMAGE_NAME}:${MANIFEST_TAG}"
sudo docker manifest inspect "${IMAGE_NAME}:${MANIFEST_TAG}" | yq --yaml-output .