12
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 12s Details

This commit is contained in:
dm 2024-08-13 13:33:19 +08:00
parent 6159de9804
commit c19b1b80bc
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,15 @@ jobs:
# apt-get install -y golang # apt-get install -y golang
# - name: Set Go Proxy # - name: Set Go Proxy
# run: go env -w GOPROXY=https://goproxy.cn,direct # run: go env -w GOPROXY=https://goproxy.cn,direct
- name: Stop and remove previous Docker containers
run: |
docker ps -q --filter "ancestor=my-docker-image" | xargs -r docker stop
docker ps -a -q --filter "ancestor=my-docker-image" | xargs -r docker rm
- name: Remove previous Docker images
run: |
docker images -q my-docker-image | xargs -r docker rmi
- name: Build Docker image - name: Build Docker image
run: docker build -t my-docker-image . run: docker build -t my-docker-image .
- name: Deploy to local Docker - name: Deploy to local Docker