Skip to content

Merge pull request #5 from kierankihn/dev #5

Merge pull request #5 from kierankihn/dev

Merge pull request #5 from kierankihn/dev #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . -t ${{ secrets.DOCKER_REPOSITORY }}:latest
- name: Login to registry
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }} ghcr.io
- name: Push Image
run: docker push ${{ secrets.DOCKER_REPOSITORY }}:latest