Skip to content

Feat/review classification #3

Feat/review classification

Feat/review classification #3

Workflow file for this run

name: GHCR
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test-build:
name: Deploy to Github Container Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to ghcr.io
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and tag image
run: |
COMMIT_SHA=$(echo $GITHUB_SHA | cut -c1-7)
docker build -t ghcr.io/emmanueldemey/bauhaus:$COMMIT_SHA -f ./Dockerfile .
- name: Push image to GHCR
run: docker push ghcr.io/emmanueldemey/bauhaus:$COMMIT_SHA