feat: push mysql
This commit is contained in:
1 parent
13d64d3f98
commit
d3cd08ebbe
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
name: Publish MySQL to Tencent CCR
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Login to CCR
|
||||
run: |
|
||||
echo "${{ secrets.TENCENT_CCR_PASSWORD }}" | docker login ccr.ccs.tencentyun.com --username="${{ secrets.TENCENT_CCR_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
docker buildx create --use
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--tag ccr.ccs.tencentyun.com/cedar-v/mysql:8.0 \
|
||||
--push \
|
||||
- << EOF
|
||||
FROM mysql:8.0
|
||||
EOF
|
||||
Reference in new issue
Block a user