Skip to content

Commit

Permalink
Add .github/workflows/*
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjuly committed May 8, 2024
1 parent 6e4c18c commit c077c41
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-n-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Push Docker Image

on:
workflow_dispatch:

push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

env:
IMAGE_NAME: kjuly/ky-env-kjuly-com

permissions:
contents: read
packages: write
id-token: write
attestations: write

concurrency:
group: "images"
cancel-in-progress: false

jobs:
build-n-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build and Push Image to Github Container Registry
uses: kjuly/docker-image-publisher@main
with:
registry: ghcr.io
image_name: ${{ env.IMAGE_NAME }}
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c077c41

Please sign in to comment.