Commit 681cef9b by mingyuan

simple file

parent d910abb9
...@@ -21,13 +21,13 @@ jobs: ...@@ -21,13 +21,13 @@ jobs:
submodules: true submodules: true
- name: Docker build - name: Docker build
run: | run: |
docker build -t ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest . docker build -t ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY:latest .
- name: Docker push latest - name: Docker push latest
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
run: | run: |
docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY:latest
- name: Docker push production - name: Docker push production
if: ${{ github.ref == 'refs/heads/deploy' }} if: ${{ github.ref == 'refs/heads/deploy' }}
run: | run: |
docker tag ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:latest ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:production docker tag ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY:latest ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY:production
docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY/engine:production docker push ${{ secrets.DOCKER_URL }}/$GITHUB_REPOSITORY: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