Skip to content

Update GitHub Actions workflow for Docker image #1

Update GitHub Actions workflow for Docker image

Update GitHub Actions workflow for Docker image #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/cthit/hexit:latest
- name: Push the Docker image to GHCR
run: docker push ghcr.io/cthit/hexit:latest