Actualiser .gitea/workflows/ci-release-tag.yml
Some checks failed
release-tag / release-image (push) Failing after 12s

This commit is contained in:
Hubert Cornet 2024-11-10 13:22:53 +01:00
parent c762e24583
commit 1018a8b449

View File

@ -1,4 +1,5 @@
name: release-tag
run-name: ${{ gitea.actor }} is running Docker build and push
on:
push
@ -28,27 +29,15 @@ jobs:
insecure = true
- name: Login to Repository
uses: ./
uses: docker/login-action@v4
with:
registry: registry.tips-of-mine.com
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- 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: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
registry.tips-of-mine.com/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
registry.tips-of-mine.com/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}