Merge pull request #2 from ethanrusz/workflow

Add CI workflow
This commit is contained in:
Em (Ethan) Ruszanowski 2024-02-19 17:45:16 -05:00 committed by GitHub
commit bc7049dcf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

30
.github/workflows/build-and-push.yml vendored Normal file
View 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 }}