Skip to content

Commit

Permalink
fix(devops): update workflow trigger branch
Browse files Browse the repository at this point in the history
  • Loading branch information
apogiatzis committed Nov 21, 2024
1 parent 1fce75e commit 79c7cd3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build_push_image.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 79c7cd3

Please sign in to comment.