Skip to content

Build and Push Docker Image to GHCR (CHTC runner image) #9

Build and Push Docker Image to GHCR (CHTC runner image)

Build and Push Docker Image to GHCR (CHTC runner image) #9

name: Build and Push Docker Image to GHCR (CHTC runner image)
on:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up 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 Docker image to GHCR
uses: docker/build-push-action@v5
with:
push: true
file: ./chtc/Dockerfile
tags: ghcr.io/uw-xdd/text2graph_chtc:${{ github.sha }}