Ci : update build yml
release-tag / release-image (push) Successful in 30s

This commit is contained in:
2024-08-01 12:31:19 +02:00
parent f5e4b10d1b
commit 5282ca3c4a
+3 -10
View File
@@ -10,8 +10,7 @@ jobs:
runs-on: ubuntu-latest
env:
DOCKER_ORG: heronfief
REPO_NAME: front
REPO_NAME: ${{ gitea.repository }}
ENDPOINT: git.legonzaur.fr
steps:
@@ -21,12 +20,6 @@ jobs:
lfs: false
persist-credentials: false
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: setup private key
shell: bash
run: |
@@ -38,7 +31,7 @@ jobs:
shell: bash
run: |
ssh-keyscan ${{ env.ENDPOINT }} >> ~/.ssh/known_hosts
git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}.git
git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.REPO_NAME }}.git
git lfs pull
- name: Login to DockerHub
@@ -52,7 +45,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.ENDPOINT }}/${{ env.DOCKER_ORG }}/${{ env.REPO_NAME }}
images: ${{ env.ENDPOINT }}/${{ env.REPO_NAME }}
tags: |
type=schedule
type=ref,event=branch