Commit 7e7bc402 by mingyuan

Merge commit '9ac2f591'

parents 65a79ec0 9ac2f591
......@@ -20,13 +20,13 @@ jobs:
submodules: true
- name: Docker build
run: |
docker build -t docker.pkg.github.com/$GITHUB_REPOSITORY:latest -f docker/Dockerfile .
docker build -t docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest -f docker/Dockerfile .
- name: Docker push latest
if: ${{ github.ref == 'refs/heads/main' }}
run: |
docker push docker.pkg.github.com/$GITHUB_REPOSITORY:latest
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest
- name: Docker push production
if: ${{ github.ref == 'refs/heads/deploy' }}
run: |
docker tag docker.pkg.github.com/$GITHUB_REPOSITORY:latest docker.pkg.github.com/$GITHUB_REPOSITORY:production
docker push docker.pkg.github.com/$GITHUB_REPOSITORY:production
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
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