Skip to content

Commit

Permalink
ci: Added Docker build/push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vel-San committed Feb 15, 2024
1 parent 8fe42ec commit a239d4e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Build and Push

on:
push:
branches:
- main
paths:
- 'ci/**'
- 'wbmbot_v2/**'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: docker build -t vel7an/wbmbot_v2 -f ci/docker/Dockerfile .

- name: Push Docker image to Docker Hub
run: docker push vel7an/wbmbot_v2

0 comments on commit a239d4e

Please sign in to comment.