From 5ef5d1766157c16069f9e0103189be516d1f513e Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Tue, 2 Apr 2024 14:13:34 -0400 Subject: [PATCH] Update CI workflows --- .github/workflows/build-latest.yml | 29 +++++++++++++++++++ .../{build-and-push.yml => build-release.yml} | 4 +-- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build-latest.yml rename .github/workflows/{build-and-push.yml => build-release.yml} (81%) diff --git a/.github/workflows/build-latest.yml b/.github/workflows/build-latest.yml new file mode 100644 index 0000000..bb51dd2 --- /dev/null +++ b/.github/workflows/build-latest.yml @@ -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 diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-release.yml similarity index 81% rename from .github/workflows/build-and-push.yml rename to .github/workflows/build-release.yml index 00d1724..59193a6 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-release.yml @@ -25,6 +25,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: | - git.beans.team/em/yuc:latest - git.beans.team/em/yuc:${{ github.event.release.tag_name }} + tags: git.beans.team/em/yuc:${{ github.event.release.tag_name }}