name: Build and Push Runner Images on: push: branches: - main paths: - "images/**" - ".gitea/workflows/build-images.yaml" workflow_dispatch: {} env: SLIM_IMAGE: git.ivanch.me/ivanch/runner-images FULL_IMAGE: git.ivanch.me/ivanch/runner-images jobs: build-slim: name: Build Slim Runner Image runs-on: ubuntu-amd64 steps: - name: Check out repository uses: actions/checkout@v4 - name: Build and push slim image uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main with: image: ${{ env.SLIM_IMAGE }} image_tag: slim build_context: images/slim build_dockerfile: Dockerfile registry_password: ${{ secrets.REGISTRY_PASSWORD }} ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }} build-full: name: Build Full Runner Image runs-on: ubuntu-amd64 steps: - name: Check out repository uses: actions/checkout@v4 - name: Build and push full image uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main with: image: ${{ env.FULL_IMAGE }} image_tag: full build_context: images/full build_dockerfile: Dockerfile registry_password: ${{ secrets.REGISTRY_PASSWORD }} ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}