ci: fix typo #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Image Mirror | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image-name: [php, python] | |
steps: | |
- name: Login to Tencent Cloud Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ccr.ccs.tencentyun.com | |
username: ${{ secrets.TENCENTCLOUD_REGISTRY_USERNAME }} | |
password: ${{ secrets.TENCENTCLOUD_REGISTRY_PASSWORD }} | |
- name: Push image | |
run: | | |
docker pull glot/${{ matrix.image-name }}:latest | |
docker tag glot/${{ matrix.image-name }}:latest ccr.ccs.tencentyun.com/qcloud-image/glot:${{ matrix.image-name }} | |
docker push ccr.ccs.tencentyun.com/qcloud-image/glot:${{ matrix.image-name }} | |