mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
29 lines
731 B
YAML
29 lines
731 B
YAML
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 }}
|