Commit 797ff103 by mingyuan

test outside

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