Skip to content

fix(ci): tag explicitly with a sha #92

fix(ci): tag explicitly with a sha

fix(ci): tag explicitly with a sha #92

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [ develop ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/SphericalKat/katbin
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}