Commit 9ac2f591 by mingyuan

docker

parent 66fb8046
...@@ -20,13 +20,13 @@ jobs: ...@@ -20,13 +20,13 @@ jobs:
submodules: true submodules: true
- name: Docker build - name: Docker build
run: | 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 - 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:latest docker push docker.pkg.github.com/$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:latest 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: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