name: CI on: push: branches: - 'master' tags: - 'v*' env: # Use docker.io for Docker Hub if empty REGISTRY: git.thehrz.net # github.repository as / IMAGE_NAME: H8-Network/TinySkin jobs: release-image: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: submodules: true # - name: Install Docker # run: curl -fsSL https://get.docker.com | sh - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log into registry if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.TOKEN }} - name: Extract Docker metadata id: meta uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image uses: docker/build-push-action@v6 with: context: . push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} # labels: ${{ steps.meta.outputs.labels }} # cache-from: type=gha # cache-to: type=gha,mode=max