Merge pull request #242 from bgilbert/drop-java-builders #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and push Windows builder container | |
name: Container - Windows | |
on: | |
push: | |
branches: [main] | |
paths: [.github/workflows/container-windows.yml, builder/windows/*] | |
pull_request: | |
branches: [main] | |
paths: [.github/workflows/container-windows.yml, builder/windows/*] | |
schedule: | |
- cron: "40 14 1 * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
# Separate PRs can run concurrently; everything else has to queue | |
concurrency: container-windows-${{ github.event.number }} | |
env: | |
CONTAINER_IMAGE: ghcr.io/${{ github.repository_owner }}/winbuild-builder:latest | |
jobs: | |
container: | |
name: Build | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build container | |
run: | | |
podman build -t $CONTAINER_IMAGE builder/windows | |
- name: Push container | |
if: github.event_name != 'pull_request' | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | | |
podman login ghcr.io -u $ --password-stdin | |
podman push $CONTAINER_IMAGE |