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:
parent
050d289620
commit
9ba8f7e3ee
13
.github/workflows/docker.yml
vendored
13
.github/workflows/docker.yml
vendored
@ -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 }}
|
Loading…
Reference in New Issue
Block a user