Skip to content

deploy-notifications #1

deploy-notifications

deploy-notifications #1

name: deploy-notifications
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'server/NotificationsService/**'
pull_request:
branches: [ master ]
paths:
- 'server/NotificationsService/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
- name: Build and push the Docker image
uses: docker/build-push-action@v5
with:
context: .
file: server/NotificationsService/DockerFile
push: true
tags: 7devio/shift-swap-notifications-service:latest