mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
commit
4275cff3af
1 changed files with 26 additions and 0 deletions
26
.github/workflows/docker.yml
vendored
Normal file
26
.github/workflows/docker.yml
vendored
Normal 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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue