From dd04c8d45b155a4c0411c779729a975cad9b9181 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Mon, 19 Feb 2024 17:44:37 -0500 Subject: [PATCH] Add CI workflow --- .github/workflows/build-and-push.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-and-push.yml diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml new file mode 100644 index 0000000..00d1724 --- /dev/null +++ b/.github/workflows/build-and-push.yml @@ -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 }}