mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
Merge pull request #70 from kayteh/ci-prs
chore: make docker workflows always run, only push on master
This commit is contained in:
commit
d82fca0cb9
1 changed files with 8 additions and 9 deletions
15
.github/workflows/docker.yml
vendored
15
.github/workflows/docker.yml
vendored
|
@ -1,7 +1,4 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
on: [push, pull_request]
|
||||
|
||||
name: Docker Workflow
|
||||
|
||||
|
@ -12,15 +9,17 @@ jobs:
|
|||
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 Login
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
|
||||
- name: Docker Push
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
docker push katie/roleypoly:${{ github.sha }}
|
||||
|
Loading…
Add table
Reference in a new issue