Compare commits

...

2 Commits

Author SHA1 Message Date
Ricard Illa 3b3c57ed8b
updated transmission to version 4 2023-02-12 16:45:03 +01:00
Ricard Illa 04536701cc
updated flake 2023-02-12 16:24:04 +01:00
4 changed files with 21 additions and 21 deletions

View File

@ -17,11 +17,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1673027386,
"narHash": "sha256-Wjt+oDhRLcf3opIjUKHGN+Xrp3w2ZDms6bO4pCLvsco=",
"lastModified": 1675940568,
"narHash": "sha256-epG6pOT9V0kS+FUqd7R6/CWkgnZx2DMT5Veqo+y6G3c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b3818a46e686f24561a28eaa9fcf35e18b8d8e89",
"rev": "6ccc4a59c3f1b56d039d93da52696633e641bc71",
"type": "github"
},
"original": {

View File

@ -8,7 +8,8 @@
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.podman pkgs.buildah pkgs.skopeo ];
nativeBuildInputs =
[ pkgs.podman pkgs.buildah pkgs.skopeo ];
buildInputs = [ ];
};
});

View File

@ -1,4 +1,4 @@
FROM alpine:3.16
FROM alpine:edge
RUN addgroup \
--gid 10001 \

View File

@ -1,19 +1,18 @@
IMG_NAME=transmission
REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
PLATFORMS=linux/amd64,linux/arm64
IMG_NAME =transmission
REGISTRY = registry.monotremata.xyz
IMG = $(REGISTRY)/$(IMG_NAME)
PLATFORM = linux/amd64,linux/arm64
JOBS = 1
.PHONY: build push buildx
.PHONY: push
build: Dockerfile
docker build -t $(IMG) .
out/image-name: Dockerfile
mkdir -p $(@D)
buildah build \
--jobs=$(JOBS) \
--platform=$(PLATFORM) \
--manifest=$(IMG) .
@echo $(IMG) > $(@)
push: build
docker image push $(IMG)
buildx: Dockerfile
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.
push: out/image-name
podman manifest push --all $(IMG) docker://$(IMG)