fix(ci/cd): Reverted to old action

This commit is contained in:
l-nmch
2026-03-18 00:09:48 +01:00
parent 86e21e06ec
commit 44f17e8886

View File

@@ -1,31 +1,36 @@
name: Build and Push Docker Image name: Docker Build and Push for Main Branch
on: on:
push: push:
paths-ignore:
- ".gitignore"
- "README.md"
- "LICENSE"
branches: branches:
- dev - main
jobs: jobs:
build: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Login to Registry - name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: git.phorge.fr registry: git.phorge.fr
username: ${{ secrets.REGISTRY_USER }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image - name: Build and push
env: uses: docker/build-push-action@v6
BRANCH_NAME: ${{ github.ref_name }} with:
SHORT_HASH: ${{ github.sha }} platforms: linux/amd64,linux/arm64
run: | push: false
# Build the image with the commit hash tag tags: git.phorge.fr/retake/retake.fr:${SHORT_HASH:0:5} git.phorge.fr/retake/retake.fr:latest
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t git.phorge.fr/retake/retake.fr:${SHORT_HASH:0:5} .
# Tag the same image as "latest"
docker tag git.phorge.fr/retake/retake.fr:${SHORT_HASH:0:5} git.phorge.fr/retake/retake.fr:latest