Skip to content

Commit

Permalink
Merge pull request #11 from DewGew/DewGew-patch-2
Browse files Browse the repository at this point in the history
Create docker.yml
  • Loading branch information
DewGew authored Oct 2, 2023
2 parents 92da0ab + 748b30f commit 1f35cb8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
pull_request:
branches: [ "development" ]
types:
- closed

jobs:

build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker Image
run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/dzga-flask:latest
- name: Docker Push
run: docker push ${{secrets.DOCKER_USER}}/dzga-flask

0 comments on commit 1f35cb8

Please sign in to comment.