Skip to content

shorten repo name

shorten repo name #5

name: Publish image to GitHub Container Registry
on:
push:
branches:
- main
- deploy
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create tag from branch
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}