Skip to content

Commit

Permalink
[CICD] Added dockerhub deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
strobsi committed Aug 25, 2020
1 parent 7ef21e0 commit 34e47ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/helloCICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,22 @@ jobs:
with:
name: build
path: cicd_app/www

deploy:
name: DockerHub Deployment
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Download build artifacts
uses: actions/download-artifact@v1
with:
name: build

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: sourcefrog/cicd
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:1.19.2-alpine

COPY ./build/ /usr/share/nginx/html

0 comments on commit 34e47ce

Please sign in to comment.