[ops] add docker-image.yml

This commit is contained in:
Yukino 2020-06-07 21:25:20 +08:00 committed by GitHub
parent 78e89ac6b9
commit f0eb76bf92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: chmod 755 others/script/github_build_docker.sh && bash others/script/github_build_docker.sh
- uses: elgohr/Publish-Docker-Github-Action@master
with:
name: tjqq/oms-server:latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: elgohr/Publish-Docker-Github-Action@master
with:
name: tjqq/oms-agent:latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}