Skip to content

Merge pull request #8 from N3aar/fix/husky-ci-fail #4

Merge pull request #8 from N3aar/fix/husky-ci-fail

Merge pull request #8 from N3aar/fix/husky-ci-fail #4

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/n3aar/eery-project
tags: |
type=ref,event=branch
type=raw,value=latest
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}