Skip to content

Commit

Permalink
chore: crop v from tag for version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
transcaffeine committed Oct 19, 2023
1 parent 1585c78 commit 2dad8fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:
registry_user: famedly-ci
registry: docker-oss.nexus.famedly.de
image_name: powerdns
build_args: "VERSION=${{ github.ref_name }}"
build_args: "VERSION=$(${{ github.ref_name }}#v)"
# tags: |
# type=ref,prefix=v,event=tag
secrets: inherit
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM docker.io/alpine:3.18
ARG VERSION
RUN apk --no-cache add bash
SHELL ["/bin/bash", "-c"]
RUN apk --no-cache add \
pdns=${VERSION} \
pdns-backend-pgsql=${VERSION} \
pdns-tools \
libcap
pdns=${VERSION#v} \
pdns-backend-pgsql=${VERSION#v} \
pdns-tools \
libcap

RUN setcap 'cap_net_bind_service=+eip' /usr/sbin/pdns_server

Expand Down

0 comments on commit 2dad8fc

Please sign in to comment.