Skip to content

👷 hatch

👷 hatch #73

Workflow file for this run

name: Docker CI/CD
on:
pull_request:
branches: ['**']
paths:
- lunchable/**
- pyproject.toml
- .github/workflows/docker.yaml
- Dockerfile
jobs:
docker-ci-test:
runs-on: ubuntu-latest

Check failure on line 13 in .github/workflows/docker.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
steps:
- name: Set up Github Workspace
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Hatch
run: |
python -m pip install -q --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Declare Version Variable
run: |
PACKAGE_VERSION=$(hatch version)
PACKAGE_NAME=$(hatch project metadata | jq -r .name)
echo PACKAGE_VERSION=${PACKAGE_VERSION} >> $GITHUB_ENV
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV
- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v5
with:
push: false
tags: juftin/${{ env.PACKAGE_NAME }}:latest