mirror of
https://github.com/ethanrusz/youtube-url-corrector.git
synced 2024-11-21 09:37:47 -05:00
Update CI workflows
This commit is contained in:
parent
9121816fc6
commit
5ef5d17661
2 changed files with 30 additions and 3 deletions
29
.github/workflows/build-latest.yml
vendored
Normal file
29
.github/workflows/build-latest.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Build and Push Latest
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
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
|
|
@ -25,6 +25,4 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: git.beans.team/em/yuc:${{ github.event.release.tag_name }}
|
||||||
git.beans.team/em/yuc:latest
|
|
||||||
git.beans.team/em/yuc:${{ github.event.release.tag_name }}
|
|
Loading…
Reference in a new issue