| 1 |
name: build docker image |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- master |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
jobs: |
| 12 |
build: |
| 13 |
if: github.repository_owner == 'errbotio' |
| 14 |
runs-on: ubuntu-latest |
| 15 |
|
| 16 |
steps: |
| 17 |
- name: checkout |
| 18 |
uses: actions/[email protected] |
| 19 |
|
| 20 |
- name: build and push docker image |
| 21 |
uses: mr-smithers-excellent/docker-build-push@v6 |
| 22 |
with: |
| 23 |
image: errbotio/errbot |
| 24 |
tags: latest |
| 25 |
registry: docker.io |
| 26 |
dockerfile: Dockerfile |
| 27 |
username: ${{ secrets.DOCKER_USERNAME }} |
| 28 |
password: ${{ secrets.DOCKER_PASSWORD }} |