Skip to content

🐳 Build Debian Docker image #5

🐳 Build Debian Docker image

🐳 Build Debian Docker image #5

name: "🐳 Build Debian Docker image"
on:
workflow_dispatch:
schedule:
- cron: "04 05 * * 6" # every Saturday at 05:04
jobs:
build:
runs-on: [ self-hosted, linux ]
permissions:
contents: read
packages: write
env:
job_path: "build_debian_docker"
dockerfile_folder_path: "${{ env.job_path }}/docker_build/debian_docker"

Check failure on line 16 in .github/workflows/build_debian_docker.yml

View workflow run for this annotation

GitHub Actions / 🐳 Build Debian Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build_debian_docker.yml (Line: 16, Col: 31): Unrecognized named-value: 'env'. Located at position 1 within expression: env.job_path
image_url_base: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.job_path }}
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.image_url_base }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ env.dockerfile_folder_path }}
push: true
tags: "${{ env.image_url_base }}/debian_docker:latest"