name: Build and Push Docker Image on: push: branches: - main jobs: build-and-push: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest steps: - name: Checkout Repository uses: actions/checkout@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Gitea container registry uses: docker/login-action@v2 with: registry: git.kucharczyk.xyz username: lukas password: ${{ secrets.LOGIN_TOKEN}} - name: Build and Push Docker Image uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile push: true tags: git.kucharczyk.xyz/containers/gitea:latest env: DOCKER_USERNAME: ${{ gitea.repository_owner }} DOCKER_PASSWORD: ${{ secrets.LOGIN_TOKEN}}