Skip to content

.github/workflows/build-ci-docker-linux.yml #6

.github/workflows/build-ci-docker-linux.yml

.github/workflows/build-ci-docker-linux.yml #6

on:
workflow_dispatch:
push:
paths:
- 'ci/docker/linux/**'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- 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 Docker image
uses: docker/build-push-action@v5
with:
context: ci/docker/linux/
file: ci/docker/linux/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/linux-ci:latest