diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f5e515..132958b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,24 +7,32 @@ on: branches: [main] env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + REGISTRY: gitea.lucids-cove.duckdns.org + OWNER: lcm + IMAGE_NAME: no-twitter-bot jobs: build-and-push-docker-image: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: node-version: [20.x] steps: - uses: actions/checkout@v4 + - name: "Base requirements" + run: | + # packages + apk update && apk add --no-cache git docker docker-compose nodejs gpg openssh npm ansible + # ansible collections + ansible-galaxy collection install community.general --force + ansible-galaxy collection install ansible.posix --force - name: Enable Corepack run: corepack enable - name: Log into registry ${{ env.REGISTRY }} uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} + username: ${{ env.OWNER }} password: ${{ secrets.GITHUB_TOKEN }} - name: Setup Docker buildx uses: docker/setup-buildx-action@v2