1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00

ci: docker build based on github actions, tag latest

This commit is contained in:
Máximo Cuadros 2020-03-17 18:52:12 +01:00
parent 050d289620
commit 9ba8f7e3ee
No known key found for this signature in database
GPG Key ID: 17A5DFEDC735AE4B

@ -1,16 +1,25 @@
name: Docker Push
on: [push, create]
jobs:
test:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
- name: Build image
uses: mr-smithers-excellent/docker-build-push@v2
with:
image: mcuadros/ascode
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag image
uses: mr-smithers-excellent/docker-build-push@v2
with:
image: mcuadros/ascode
registry: docker.io
tag: latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}