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