Update .gitea/workflows/gitea.yaml
Some checks failed
Tomcode landing build/deploy / build (push) Successful in 28s
Tomcode landing build/deploy / dockerize (push) Failing after 51s

This commit is contained in:
thomas 2024-09-22 14:00:54 +02:00
parent d958ae8309
commit a6bd5d1da4

View File

@ -36,6 +36,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build
path: ./build
- name: Test
run: pwd && ls -la
- name: Set up QEMU
@ -52,10 +53,19 @@ jobs:
registry: https://git.tomcode.io
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_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: ./docker
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
git.tomcode.io/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.tomcode.io/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}