simplify docker use
Some checks failed
default / build-and-deploy (push) Failing after 4s

This commit is contained in:
Pavel 2025-03-30 17:36:01 +03:00
parent 5d53280e3c
commit 781f30207d

View file

@ -8,24 +8,15 @@ on:
jobs:
build-and-deploy:
runs-on: docker
container:
image: data.forgejo.org/oci/node:20-bullseye
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /usr/bin/docker:/usr/bin/docker:ro
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY_NAME: ${{ github.repository_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_SERVER_URL: https://git.neur0tx.site
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v3
container:
image: docker:dind
options: --privileged
with:
registry: git.neur0tx.site
username: ${{ github.actor }}
@ -33,6 +24,9 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v6
container:
image: docker:dind
options: --privileged
with:
context: .
push: true