Skip to content

Merge pull request #1 from GuillaumeDorschner/dependabot/pip/Part-2--… #25

Merge pull request #1 from GuillaumeDorschner/dependabot/pip/Part-2--…

Merge pull request #1 from GuillaumeDorschner/dependabot/pip/Part-2--… #25

name: Part 2 - Build and Publish to GHCR
on:
push:
paths:
- "Part 2 - Pake/**"
branches:
- main
jobs:
build-and-publish-server:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push server image
uses: docker/build-push-action@v2
with:
context: ./Part 2 - Pake
file: ./Part 2 - Pake/Dockerfile
push: true
tags: ghcr.io/guillaumedorschner/part-two:latest