Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Continuous Deployment (Prod) (Backend)
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile.backend
push: true
tags: 100xdevs/user-app-backend:${{ github.sha }}