landing/.gitea/workflows/gitea.yaml
thomas f761e57f38
Some checks failed
Tomcode landing build/deploy / dockerize (push) Failing after 42s
Update .gitea/workflows/gitea.yaml
2024-09-22 13:22:37 +02:00

33 lines
941 B
YAML

name: Tomcode landing build/deploy
run-name: Tomcode landing is being built and deployed 🚀
on: [push]
jobs:
dockerize:
name: dockerize
runs-on: node
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- 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:
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