Skip to content

Commit

Permalink
feat: use args instead of templating
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gągor committed Dec 28, 2024
1 parent af1dbf7 commit cba74a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.tpl → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM quay.io/centos/centos:{{ .centos }}
ARG TAG=stream
FROM quay.io/centos/centos:$TAG

# upgrade packages
RUN dnf upgrade --setopt=install_weak_deps=False -y && \
Expand Down
4 changes: 3 additions & 1 deletion build-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ labels:
images:
centos:
dockerfile: Dockerfile.tpl
dockerfile: Dockerfile
variables:
centos:
- stream9
- stream10
args:
TAG: "{{ .centos }}"
tags:
- centos:{{ .centos }}-{{ .tag }}
labels:
Expand Down
2 changes: 2 additions & 0 deletions build-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ images:
centos:
- stream9
- stream10
args:
TAG: "{{ .centos }}"
tags:
- centos:{{ .centos }}
- centos:{{ .centos | trimPrefix "stream" }}
Expand Down

0 comments on commit cba74a1

Please sign in to comment.