-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from cytopia/release-0.28
Release 0.28
- Loading branch information
Showing
11 changed files
with
124 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,24 +69,24 @@ jobs: | |
MATRIX_BUILD="$( \ | ||
jq -M -c \ | ||
--argjson refs '${{ inputs.refs }}' \ | ||
'map({name:.NAME, version:.VERSION[], arch:.ARCH[], refs:$refs[]})' <<<'${{ inputs.matrix }}' \ | ||
'map({name:.NAME, version:.VERSION[], flavour:.FLAVOUR[], arch:.ARCH[], refs:$refs[]})' <<<'${{ inputs.matrix }}' \ | ||
)" | ||
MATRIX_DEPLOY="$( \ | ||
jq -M -c \ | ||
--argjson refs '${{ inputs.refs }}' \ | ||
'map({name:.NAME, version:.VERSION[], refs:$refs[]})' <<<'${{ inputs.matrix }}' \ | ||
'map({name:.NAME, version:.VERSION[], flavour:.FLAVOUR[], refs:$refs[]})' <<<'${{ inputs.matrix }}' \ | ||
)" | ||
echo "::set-output name=matrix_build::${MATRIX_BUILD}" | ||
echo "::set-output name=matrix_deploy::${MATRIX_DEPLOY}" | ||
echo "::set-output name=has_refs::1" | ||
else | ||
MATRIX_BUILD="$( \ | ||
jq -M -c \ | ||
'map({name:.NAME, version:.VERSION[], arch:.ARCH[]})' <<<'${{ inputs.matrix }}' \ | ||
'map({name:.NAME, version:.VERSION[], flavour:.FLAVOUR[], arch:.ARCH[]})' <<<'${{ inputs.matrix }}' \ | ||
)" | ||
MATRIX_DEPLOY="$( \ | ||
jq -M -c \ | ||
'map({name:.NAME, version:.VERSION[]})' <<<'${{ inputs.matrix }}' \ | ||
'map({name:.NAME, version:.VERSION[], flavour:.FLAVOUR[]})' <<<'${{ inputs.matrix }}' \ | ||
)" | ||
echo "::set-output name=matrix_build::${MATRIX_BUILD}" | ||
echo "::set-output name=matrix_deploy::${MATRIX_DEPLOY}" | ||
|
@@ -114,7 +114,7 @@ jobs: | |
# ----------------------------------------------------------------------------------------------- | ||
build: | ||
needs: [configure] | ||
name: Build ${{ matrix.name }}-${{ matrix.version }} (${{ matrix.arch }}) ${{ matrix.refs }} | ||
name: Build ${{ matrix.name }}-${{ matrix.version }} (${{ matrix.flavour }}) (${{ matrix.arch }}) ${{ matrix.refs }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -155,7 +155,7 @@ jobs: | |
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make build NAME=${{ matrix.name }} VERSION=${{ matrix.version }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
make build NAME=${{ matrix.name }} VERSION=${{ matrix.version }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
# ------------------------------------------------------------ | ||
# Test | ||
|
@@ -164,7 +164,7 @@ jobs: | |
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make test NAME=${{ matrix.name }} VERSION=${{ matrix.version }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
make test NAME=${{ matrix.name }} VERSION=${{ matrix.version }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
# ------------------------------------------------------------ | ||
# Deploy | ||
|
@@ -180,15 +180,15 @@ jobs: | |
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make push NAME=${{ matrix.name }} VERSION=${{ matrix.version }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
make push NAME=${{ matrix.name }} VERSION=${{ matrix.version }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
if: needs.configure.outputs.can_login == 1 && inputs.can_deploy | ||
|
||
# ----------------------------------------------------------------------------------------------- | ||
# JOB (3/3): DEPLOY | ||
# ----------------------------------------------------------------------------------------------- | ||
deploy: | ||
needs: [configure, build] | ||
name: Deploy ${{ matrix.name }}-${{ matrix.version }} ${{ matrix.refs }} | ||
name: Deploy ${{ matrix.name }}-${{ matrix.version }} (${{ matrix.flavour }}) ${{ matrix.refs }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -221,8 +221,8 @@ jobs: | |
run: | | ||
ARCHES="$( echo '${{ inputs.matrix }}' \ | ||
| jq 'group_by(.NAME, .VERSION, .ARCH)' \ | ||
| jq 'map({NAME: .[].NAME, VERSION: .[].VERSION[], ARCHES: .[].ARCH|join(",")})' \ | ||
| jq '.[] | select(.NAME=="${{ matrix.name }}" and .VERSION=="${{ matrix.version }}") | .ARCHES' \ | ||
| jq 'map({NAME: .[].NAME, VERSION: .[].VERSION[], FLAVOUR: .[].FLAVOUR[], ARCHES: .[].ARCH|join(",")})' \ | ||
| jq '.[] | select(.NAME=="${{ matrix.name }}" and .VERSION=="${{ matrix.version }}" and .FLAVOUR=="${{ matrix.flavour }}") | .ARCHES' \ | ||
| jq -c -M \ | ||
)" | ||
echo "::set-output name=arches::${ARCHES}" | ||
|
@@ -242,10 +242,10 @@ jobs: | |
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make manifest-create NAME=${{ matrix.name }} VERSION=${{ matrix.version }} ARCHES=${{ steps.manifest.outputs.arches }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
make manifest-create NAME=${{ matrix.name }} VERSION=${{ matrix.version }} FLAVOUR=${{ matrix.flavour }} ARCHES=${{ steps.manifest.outputs.arches }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
- name: "[DEPLOY] Publish Docker manifest: ${{ steps.tag.outputs.docker-tag }}" | ||
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make manifest-push NAME=${{ matrix.name }} VERSION=${{ matrix.version }} TAG=${{ steps.tag.outputs.docker-tag }} | ||
make manifest-push NAME=${{ matrix.name }} VERSION=${{ matrix.version }} FLAVOUR=${{ matrix.flavour }} TAG=${{ steps.tag.outputs.docker-tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM alpine | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
ENV \ | ||
USER=named \ | ||
GROUP=named | ||
|
||
### | ||
### Install | ||
### | ||
RUN set -x \ | ||
&& apk add --no-cache \ | ||
bash \ | ||
bind \ | ||
bind-tools \ | ||
# Log directory | ||
&& mkdir /var/log/named \ | ||
&& chown ${USER}:${GROUP} /var/log/named \ | ||
&& chmod 0755 /var/log/named \ | ||
# Cache directory | ||
&& mkdir /var/cache/bind \ | ||
&& chown root:${GROUP} /var/cache/bind \ | ||
&& chmod 0775 /var/cache/bind | ||
|
||
|
||
|
||
### | ||
### Bootstrap Scipts | ||
### | ||
COPY ./data/docker-entrypoint.sh / | ||
|
||
|
||
### | ||
### Ports | ||
### | ||
EXPOSE 53 | ||
EXPOSE 53/udp | ||
|
||
|
||
#### | ||
#### Entrypoint | ||
#### | ||
ENTRYPOINT ["/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile.stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM debian:stable-slim | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
ENV \ | ||
USER=bind \ | ||
GROUP=bind | ||
|
||
### | ||
### Install | ||
|
@@ -9,8 +12,6 @@ RUN set -eux \ | |
&& apt update \ | ||
&& apt install --no-install-recommends --no-install-suggests -y \ | ||
bind9 \ | ||
#nsutils \ | ||
#putils-ping \ | ||
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& rm -r /var/lib/apt/lists/* \ | ||
&& mkdir /var/log/named \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters