mirror of
https://github.com/ethanrusz/youtube-url-corrector.git
synced 2024-11-24 12:37:46 -05:00
Add CI workflow
This commit is contained in:
parent
2096898fd1
commit
dd04c8d45b
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build-and-push.yml
vendored
Normal file
30
.github/workflows/build-and-push.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build and Push on Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-registry:
|
||||||
|
name: Update Registry Image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to git.beans.team
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.beans.team
|
||||||
|
username: em
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and Push Image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.beans.team/em/yuc:latest
|
||||||
|
git.beans.team/em/yuc:${{ github.event.release.tag_name }}
|
Loading…
Reference in a new issue