From 79c7cd3488df9bd6f6f42d67ff52b7d97726ca4a Mon Sep 17 00:00:00 2001 From: apogiatzis Date: Thu, 21 Nov 2024 23:38:08 +0000 Subject: [PATCH] fix(devops): update workflow trigger branch --- .github/workflows/build_push_image.yml | 29 ----------------- .../{deploy_bot.yml => push_image_deploy.yml} | 31 +++++++++++++++++-- 2 files changed, 29 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/build_push_image.yml rename .github/workflows/{deploy_bot.yml => push_image_deploy.yml} (73%) diff --git a/.github/workflows/build_push_image.yml b/.github/workflows/build_push_image.yml deleted file mode 100644 index b2d719e..0000000 --- a/.github/workflows/build_push_image.yml +++ /dev/null @@ -1,29 +0,0 @@ -on: - push: - branches: - - master - -jobs: - build-and-push: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and Push Docker Image - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: ghcr.io/cybermouflons/ovisbot:latest diff --git a/.github/workflows/deploy_bot.yml b/.github/workflows/push_image_deploy.yml similarity index 73% rename from .github/workflows/deploy_bot.yml rename to .github/workflows/push_image_deploy.yml index ac07950..5cde989 100644 --- a/.github/workflows/deploy_bot.yml +++ b/.github/workflows/push_image_deploy.yml @@ -1,10 +1,37 @@ -name: Deploy Bot +name: Build and push image + on: push: branches: - - main + - master + jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ghcr.io/cybermouflons/ovisbot:latest + deploy: + needs: build-and-push runs-on: ubuntu-latest environment: PROD steps: