Skip to content

Fix errors (#1)

Fix errors (#1) #1

name: Docker Build and Push to GHCR
on:
push:
branches:
- master # Trigger the workflow on push to the main branch
pull_request:
branches:
- master # Trigger the workflow on pull requests to the main branch
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/lilkidsuave/cosmos-cert-extractor:latest
- name: Log out from GitHub Container Registry
run: docker logout ghcr.io