Skip to content

Merge branches 'main' and 'main' of https://github.com/Tomdieu/wikicu… #94

Merge branches 'main' and 'main' of https://github.com/Tomdieu/wikicu…

Merge branches 'main' and 'main' of https://github.com/Tomdieu/wikicu… #94

name: Build and Push Moderator Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker image
run: |
cd backend/moderator && docker build . --tag moderator_service:latest
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker image to GitHub Container Registry
run: |
docker tag moderator_service:latest ghcr.io/tomdieu/wikiculture/moderator_service:latest
docker push ghcr.io/tomdieu/wikiculture/moderator_service:latest