This commit is contained in:
parent
a7b2713c0a
commit
cc7c7d7b4a
1 changed files with 25 additions and 35 deletions
|
@ -11,43 +11,33 @@ defaults:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
builder:
|
builder:
|
||||||
runs-on: self-hosted #ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Pull code into local instance
|
- name: Check out code
|
||||||
run: git pull
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build the Astro app
|
- name: Set up QEMU
|
||||||
run: pnpm build
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Restart the Node server
|
- name: Set up context
|
||||||
run: pm2 restart 0
|
run: docker context create builders
|
||||||
|
|
||||||
# === old workflow w/ docker shenanigans ===
|
- name: Set up Docker Build
|
||||||
#- name: Check out code
|
uses: docker/setup-buildx-action@v2
|
||||||
# uses: actions/checkout@v4
|
with:
|
||||||
|
version: latest
|
||||||
|
endpoint: builders
|
||||||
|
|
||||||
#- name: Set up QEMU
|
- name: Login to Docker Registry
|
||||||
# uses: docker/setup-qemu-action@v2
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY_URL }}
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
#- name: Set up context
|
- name: Build and push
|
||||||
# run: docker context create builders
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
#- name: Set up Docker Build
|
push: true
|
||||||
# uses: docker/setup-buildx-action@v2
|
platforms: linux/amd64
|
||||||
# with:
|
tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}:latest
|
||||||
# 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
|
|
Loading…
Add table
Reference in a new issue