Skip to content

fix minor typo

fix minor typo #4

name: Build Docker Debian 11 image
on:
workflow_dispatch:
push:
# schedule:
# - cron: '0 23 * * *'
env:
IMAGE_ID: ghcr.io/romeroalx/base-pdns-ci-image/debian-11-pdns-base
IMAGE_TAG: "master"
DEBIAN_RELEASE_NAME: "bullseye"
jobs:
build-and-push-debian-image:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Build image
run: |
docker build . --file Dockerfile \
--tag $IMAGE_ID:$IMAGE_TAG --build-arg IMAGE_TAG=$DEBIAN_RELEASE_NAME \
--build-arg DOCKER_GID=$(stat -c %g /var/run/docker.sock) \
--build-arg REPO_URL=https://github.com/romeroalx/pdns.git \
--build-arg REPO_BRANCH=master
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push into Github Container Registry
run: |
docker push $IMAGE_ID:$IMAGE_TAG