Update .gitea/workflows/gitea.yaml

This commit is contained in:
thomas 2024-09-22 13:15:39 +02:00
parent 3eb8b73b7a
commit ea3e712289

View File

@ -20,21 +20,28 @@ jobs:
run: |
echo "Building application."
npm run build --cache .npm --prefer-offline
docker:
dockerize:
name: dockerize
runs-on: node
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
run: docker login https://git.tomcode.io/ -u thomas -p N0sflgdh@
-
name: Build and push
uses: docker/build-push-action@v6
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry."git.tomcode.io"]
- name: Login to DockerHub
uses: docker/login-action@v2
with:
push: true
tags: user/app:latest
registry: http://192.168.8.30:3000
username: ${{ secrets.DOCKER_USERNAME }}
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