fuck this docker pipeline shit, let's just try the simplest CI/CD i can think of
Some checks failed
ci / builder (push) Failing after 0s

This commit is contained in:
Kebo 2025-06-26 12:15:34 -05:00
parent 13b8fd6590
commit 535c38cd10

View file

@ -5,35 +5,50 @@ on:
branches: branches:
- "main" - "main"
defaults:
run:
shell: bash
working-directory: /home/mom/git/eleboog-astro
jobs: jobs:
builder: builder:
runs-on: ubuntu-latest runs-on: self-hosted #ubuntu-latest
steps: steps:
- name: Check out code - name: Pull code into local instance
uses: actions/checkout@v4 run: git pull
- name: Set up QEMU - name: Build the Astro app
uses: docker/setup-qemu-action@v2 run: pnpm build
- name: Set up context - name: Restart the Node server
run: docker context create builders run: pm2 restart 0
- name: Set up Docker Build # === old workflow w/ docker shenanigans ===
uses: docker/setup-buildx-action@v2 #- name: Check out code
with: # uses: actions/checkout@v4
version: latest
endpoint: builders
- name: Login to Docker Registry #- name: Set up QEMU
uses: docker/login-action@v3 # uses: docker/setup-qemu-action@v2
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push #- name: Set up context
uses: docker/build-push-action@v6 # run: docker context create builders
with:
push: true #- name: Set up Docker Build
platforms: linux/amd64 # uses: docker/setup-buildx-action@v2
tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}:latest # with:
# version: latest
# endpoint: builders
#- name: Login to Docker Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ vars.REGISTRY_URL }}
# username: ${{ secrets.REGISTRY_USERNAME }}
# password: ${{ secrets.REGISTRY_TOKEN }}
#- name: Build and push
# uses: docker/build-push-action@v6
# with:
# push: true
# platforms: linux/amd64
# tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}:latest