Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: CI test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASS }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push client
uses: docker/build-push-action@v5
with:
context: ./client
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.event.repository.name }}client:latest
-
name: Build and push user service
uses: docker/build-push-action@v5
with:
context: ./UserManagement
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.event.repository.name }}user:latest