Commit 9f6cc982 by mingyuan

test syntx

parent 797ff103
......@@ -15,7 +15,7 @@ jobs:
submodules: true
- name: Docker build
run: |
docker build -t ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest .
docker build -t $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest .
- name: Docker login
uses: docker/login-action@v1
with:
......@@ -25,9 +25,9 @@ jobs:
- name: Docker push latest
if: ${{ github.ref == 'refs/heads/main' }}
run: |
docker push ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest
docker push $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest
- name: Docker push production
if: ${{ github.ref == 'refs/heads/deploy' }}
run: |
docker tag ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:production
docker push ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:production
docker tag $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:latest $secrets:GITHUB_REGISTRY/$GITHUB_REPOSITORY/engine:production
docker push $secrets: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