Skip to content

Updated testing branch to DNSCrypt 2.1.5 #26

Updated testing branch to DNSCrypt 2.1.5

Updated testing branch to DNSCrypt 2.1.5 #26

name: Build
on:
push:
workflow_dispatch:
inputs:
dnscrypt-proxy-release:
description: 'DNSCrypt Proxy Release'
required: true
env:
REGISTRY: docker.io
IMAGE_NAME: xtr0py/dnscrypt-proxy-2-docker
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
env:
DNSCRYPT_PROXY_VERSION: ${{ github.event.inputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup default version
run: echo "DNSCRYPT_PROXY_VERSION=2.1.5" >> $GITHUB_ENV
if: ${{ env.DNSCRYPT_PROXY_VERSION == '' }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
# Login against a Docker registry except on PR
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/#-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
build-args: VERSION=${{ env.DNSCRYPT_PROXY_VERSION }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DNSCRYPT_PROXY_VERSION }}
push: true