Skip to content

WIP: Test docker publish on PR #4

WIP: Test docker publish on PR

WIP: Test docker publish on PR #4

Workflow file for this run

name: Docker Publish
on:
push:
branches: ["build-docker-container-in-ci"]
jobs:
docker-build:
runs-on: ubuntu-24.04
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -t "${REGISTRY}/${IMAGE_NAME}:main" .
- name: Push Docker image
run: docker push "${REGISTRY}/${IMAGE_NAME}:main"