Merge pull request #65 from kayteh/cicd

CI and partial CD
This commit is contained in:
41666 2019-11-20 01:48:55 -05:00 committed by GitHub
commit 4275cff3af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,26 @@
on:
push:
branches:
- master
name: Docker Workflow
jobs:
build_publish:
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Docker Login
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Docker Build
run: |
docker build . -t katie/roleypoly:${{ github.sha }}
- name: Docker Push
run: |
docker push katie/roleypoly:${{ github.sha }}