Commit 797ff103 by mingyuan

test outside

parent 3dc720d8
...@@ -15,19 +15,19 @@ jobs: ...@@ -15,19 +15,19 @@ jobs:
submodules: true submodules: true
- name: Docker build - name: Docker build
run: | run: |
docker build -t docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest . docker build -t ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest .
- name: Docker login - name: Docker login
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
registry: docker.pkg.github.com registry: ${{ secrets.GITHUB_REGISTRY }}
username: ${{ github.actor }} username: ${{ secrets.GITHUB_USER }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push latest - name: Docker push latest
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
run: | run: |
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest docker push ${{ secrets.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 docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest docker.pkg.github.com/$GITHUB_REPOSITORY/engine:production docker tag ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest ${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:production
docker push docker.pkg.github.com/$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