Update build.yaml with Docker commands
Some checks failed
Actions Build Binary / Build-Binary (push) Successful in 4s
Actions Build Binary / Build-Docker-Image (push) Failing after 9s

This commit is contained in:
Alex Borisov 2024-02-01 21:34:50 +03:00
parent a4681c3cc6
commit e41d8a3244

View File

@ -53,7 +53,9 @@ jobs:
apk add --no-cache docker
- name: Start Docker service
run: |
dockerd & sleep 5 && docker ps -a
dockerd &
sleep 5
docker info
- name: Get Binary from soaska.ru
run: |
package_name=$(basename ${{ github.repository | tr '[:upper:]' '[:lower:]' }})
@ -67,9 +69,7 @@ jobs:
ls ${{ gitea.workspace }}
- name: Build Dockerfile
run: |
package_name=$(basename ${{ github.repository | tr '[:upper:]' '[:lower:]' }})
branch_name=$(git rev-parse --abbrev-ref HEAD | tr '[:upper:]' '[:lower:]')
docker build -t $package_name .
docker build -t $(basename ${{ github.repository }}) .
- name: Upload Docker image to soaska.ru
run: |
package_name=$(basename ${{ github.repository | tr '[:upper:]' '[:lower:]' }})