From 9ba8f7e3eef652f996e2b68759fc65011cbac217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Tue, 17 Mar 2020 18:52:12 +0100 Subject: [PATCH] ci: docker build based on github actions, tag latest --- .github/workflows/docker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4164dd8..ac9696c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 }} \ No newline at end of file