2020-03-17 18:30:53 +01:00
|
|
|
name: Docker Push
|
2020-03-29 01:12:41 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
2020-03-17 18:30:53 +01:00
|
|
|
jobs:
|
2020-03-17 18:52:12 +01:00
|
|
|
docker:
|
2020-03-17 18:30:53 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-03-17 18:52:12 +01:00
|
|
|
- name: Build image
|
2020-03-17 18:30:53 +01:00
|
|
|
uses: mr-smithers-excellent/docker-build-push@v2
|
|
|
|
with:
|
|
|
|
image: mcuadros/ascode
|
|
|
|
registry: docker.io
|
2020-03-27 19:22:44 +01:00
|
|
|
username: mcuadros
|
2020-03-17 18:52:12 +01:00
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Tag image
|
|
|
|
uses: mr-smithers-excellent/docker-build-push@v2
|
|
|
|
with:
|
|
|
|
image: mcuadros/ascode
|
|
|
|
registry: docker.io
|
|
|
|
tag: latest
|
2020-03-27 19:22:44 +01:00
|
|
|
username: mcuadros
|
2020-03-17 18:30:53 +01:00
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|