fix(ci/cd)
Some checks failed
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Successful in 1m48s

This commit is contained in:
EvanChal
2026-01-25 22:43:37 +01:00
parent e4b9e354ef
commit 2b172c5d34

View File

@@ -8,16 +8,18 @@ on:
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: docker:24-dind
options: --privileged
steps: steps:
- name: Install git
run: apk add --no-cache git
- name: Checkout code - name: Checkout code
run: | run: |
git clone --depth 1 --branch prod https://${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}@git.local.evan.casa/evan/lediscord.git . git clone --depth 1 --branch prod https://${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}@git.local.evan.casa/evan/lediscord.git .
- name: Force IPv4 for DNS
run: |
echo 'precedence ::ffff:0:0/96 100' | tee -a /etc/gai.conf || true
- name: Login to Registry - name: Login to Registry
run: | run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin