Skip to content

port configs and test ansible config workflows #4

port configs and test ansible config workflows

port configs and test ansible config workflows #4

name: Buld server image and push
on:
push:
branches:
- master
paths:
- 'server/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Build
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: ./server
push: true
tags: saumyashah40/doodler-server:latest