Commit 28c9945a by mingyuan

add docker url

parent 9a2a0826
......@@ -21,13 +21,13 @@ jobs:
submodules: true
- name: Docker build
run: |
docker build -t $GITHUB_REPOSITORY/engine:latest .
docker build -t ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest .
- name: Docker push latest
if: ${{ github.ref == 'refs/heads/main' }}
run: |
docker push $GITHUB_REPOSITORY/engine:latest
docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest
- name: Docker push production
if: ${{ github.ref == 'refs/heads/deploy' }}
run: |
docker tag $GITHUB_REPOSITORY/engine:latest $GITHUB_REPOSITORY/engine:production
docker push $GITHUB_REPOSITORY/engine:production
docker tag ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:production
docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:production
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment