name: Build Docker Image on: push: branches: - main jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - name: Checkout code uses: https://git.martin98.com/actions/checkout.git@v4 - name: Log in to Docker Hub uses: https://git.martin98.com/actions/login-action.git@v3 with: registry: ${{ vars.GIT_IMAGE_URL }} username: ${{ vars.GIT_IMAGE_USERNAME }} password: ${{ vars.GIT_IMAGE_PASSWORD }} - name: Build and push uses: https://git.martin98.com/actions/build-push-action.git@v4 with: context: . platforms: linux/amd64 push: true tags: | git.martin98.com/martinfarm/init:latest git.martin98.com/martinfarm/init:${{ github.sha }}