Skip to content

Commit

Permalink
Merge pull request #29 from fleizean/dockerbuild
Browse files Browse the repository at this point in the history
[ACTIONS] docker build and push added.
  • Loading branch information
yeaktas committed Jan 22, 2024
2 parents becd480 + be0814a commit 96a2bdc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

0 comments on commit 96a2bdc

Please sign in to comment.