Commit d7791ea3 by mingyuan

update stynx

parent 9f6cc982
...@@ -15,7 +15,7 @@ jobs: ...@@ -15,7 +15,7 @@ jobs:
submodules: true submodules: true
- name: Docker build - name: Docker build
run: | run: |
docker build -t $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest . docker build -t $GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest .
- name: Docker login - name: Docker login
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
...@@ -25,9 +25,9 @@ jobs: ...@@ -25,9 +25,9 @@ jobs:
- 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:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest docker push $GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine: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:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:production docker tag $GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest $GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:production
docker push $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:production docker push $GITHUB_REGISTRY/$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