Update: Docker test
This commit is contained in:
parent
5e3e880c80
commit
d40a94ebf2
1 changed files with 15 additions and 2 deletions
17
.github/workflows/docker-image.yml
vendored
17
.github/workflows/docker-image.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Test
|
||||
name: Push-Development
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -8,10 +8,23 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Run Test
|
||||
name: Push Development
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Run tests
|
||||
run: docker-compose run test
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: user/app:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue