Skip to content

2024年8月29日 优化禁用用户 #18

2024年8月29日 优化禁用用户

2024年8月29日 优化禁用用户 #18

Workflow file for this run

name: Build and Push Docker Image to Alibaba Cloud
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Alibaba Cloud Container Registry
env:
DOCKER_REGISTRY: ${{ secrets.ALICLOUD_REGISTRY }}
DOCKER_USERNAME: ${{ secrets.ALICLOUD_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.ALICLOUD_PASSWORD }}
run: |
echo $DOCKER_PASSWORD | docker login --username=$DOCKER_USERNAME --password-stdin $DOCKER_REGISTRY
- name: Build Docker image
run: docker build -t ${{ secrets.ALICLOUD_REGISTRY }}/ss1917/codo-admin:latest .
- name: Push Docker image
run: docker push ${{ secrets.ALICLOUD_REGISTRY }}/ss1917/codo-admin:latest