Skip to content

Merge pull request #17 from riseon-dev/feature/9/fixing-deployments #4

Merge pull request #17 from riseon-dev/feature/9/fixing-deployments

Merge pull request #17 from riseon-dev/feature/9/fixing-deployments #4

Workflow file for this run

name: Build Docker Image and Push to Docker Hub
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
uses: actions/checkout@v4
name: Checkout project
with:
fetch-depth: 2
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
target: web
push: true
tags: n3m6/web:latest
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
target: api
push: true
tags: n3m6/api:latest