Skip to content

[ACTIONS] docker build and push added. #1

[ACTIONS] docker build and push added.

[ACTIONS] docker build and push added. #1

Workflow file for this run

name: Docker Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push Docker images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
docker-compose -f docker-compose.yml build
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker-compose -f docker-compose.yml push