another attempt at fixing
Some checks failed
default / build-and-deploy (push) Failing after 7s

This commit is contained in:
Pavel 2025-03-30 18:03:58 +03:00
parent 8c4aaa65fe
commit 5c7fcfbc04

View file

@ -8,32 +8,35 @@ on:
jobs:
build-and-deploy:
runs-on: docker
container:
image: docker:dind
options: --privileged
steps:
- name: Set Up Node
run: apk add --no-cache nodejs
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.neur0tx.site
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
dockerd-entrypoint.sh &
until docker info > /dev/null 2>&1; do
echo "Waiting for Docker daemon..."
sleep 1
done
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.neur0tx.site -u "${{ github.actor }}" --password-stdin
docker build -t git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest .
docker push git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest
- name: Deploy
if: ${{ success() }}
container: alpine:latest
run: |
apk add --no-cache curl
curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }}
apt-get install -y --no-install-recommends curl
curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }}
container: alpine:latest