Skip to content

Commit

Permalink
Merge pull request #19 from SteveKueng/docker
Browse files Browse the repository at this point in the history
update docker build
  • Loading branch information
SteveKueng authored Sep 17, 2023
2 parents e44234e + c618d3c commit 251d78f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image CI

on:
push:
branches: [ "mwa2" ]
branches: [ "main" ]
pull_request:
branches: [ "mwa2" ]
branches: [ "main" ]

jobs:

Expand All @@ -14,5 +14,14 @@ jobs:

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
run: docker build app --file app/Dockerfile.prod --tag stevekueng/munkiwebadmin:$(date +%s)

- name: Docker Push
run: docker push stevekueng/munkiwebadmin
2 changes: 2 additions & 0 deletions app/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ RUN pip install --upgrade pip
RUN pip install --no-cache /wheels/*
COPY --from=builder /tmp/munkitools /munkitools

RUN chmod +x /home/app/web/entrypoint.prod.sh

# nginx config
COPY munkiwebadmin/munkiwebadmin.conf /etc/nginx/sites-available/default

Expand Down

0 comments on commit 251d78f

Please sign in to comment.