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
|
name: Docker Push
|
||||||
on: [push, create]
|
on: [push, create]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build image
|
||||||
uses: mr-smithers-excellent/docker-build-push@v2
|
uses: mr-smithers-excellent/docker-build-push@v2
|
||||||
with:
|
with:
|
||||||
image: mcuadros/ascode
|
image: mcuadros/ascode
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
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 }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
Loading…
Reference in New Issue
Block a user