fix minor typo #4
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
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 |