Skip to content

fix eslint package version issue and format (#86) #8

fix eslint package version issue and format (#86)

fix eslint package version issue and format (#86) #8

name: Publish to GHCR
on:
push:
branches:
- release
jobs:
Publish:
runs-on: buildjet-4vcpu-ubuntu-2204-arm
permissions:
contents: read
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Login to GHCR
env:
REGISTRY: ghcr.io
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Extract metadata for Docker GHCR
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: linux/arm64/v8
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}