Skip to content

demo: container paths #1

demo: container paths

demo: container paths #1

Workflow file for this run

name: Demo
on:
push:
jobs:
build:
name: Build test image
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository }}:demo-container-paths
lint:
name: Lint
needs: [build]
runs-on: ubuntu-22.04
container:
image: ghcr.io/${{ github.repository }}:demo-container-paths
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Pyright
uses: jakebailey/pyright-action@v2
with:
version: PATH
working-directory: /opt/demo