fix CI : the true end
release-tag / release-image (push) Successful in 54s

This commit is contained in:
2024-05-09 10:15:00 +02:00
parent 8d7f36a58c
commit 2f1da6d69d
+10 -12
View File
@@ -12,27 +12,25 @@ jobs:
ENDPOINT: git.legonzaur.fr ENDPOINT: git.legonzaur.fr
steps: steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
- name: Get Meta - name: Get Meta
id: meta id: meta
run: | run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
# github-server-url: "http://192.168.3.100:3000"
# env:
# GIT_TRACE: 1
# GIT_CURL_VERBOSE: 1
- name: setup private key - name: setup private key
shell: bash shell: bash
run: | run: |
echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519 chmod 400 ~/.ssh/id_ed25519
echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts" echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts"
- name: git lfs pull - name: git lfs pull
shell: bash shell: bash
run: | run: |
@@ -43,7 +41,7 @@ jobs:
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: git.legonzaur.fr registry: ${{ env.ENDPOINT }}
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@@ -57,5 +55,5 @@ jobs:
"NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT=${{ secrets.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT }}" "NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT=${{ secrets.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT }}"
push: true push: true
tags: | # replace it with your local IP and tags tags: | # replace it with your local IP and tags
git.legonzaur.fr/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} ${{ env.ENDPOINT }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.legonzaur.fr/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} ${{ env.ENDPOINT }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}