fix: simplify further #33
This file contains hidden or 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
| name: Build and push Docker image to GHCR | |
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: "0 0 * * 0" # Weekly on Sundays at midnight | |
| jobs: | |
| build-and-push: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| autocrlf: false | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| id: push | |
| shell: pwsh | |
| run: | | |
| docker build ` | |
| --build-arg WINDOWS_VERSION=ltsc2025 ` | |
| --build-arg VECTOR_VERSION=0.51.0 ` | |
| -t ghcr.io/${{ github.repository_owner }}/vector-windows-container-image:latest ` | |
| -t ghcr.io/${{ github.repository_owner }}/vector-windows-container-image:v0.51.0 ` | |
| . | |
| docker push ghcr.io/${{ github.repository_owner }}/vector-windows-container-image:latest | |
| docker push ghcr.io/${{ github.repository_owner }}/vector-windows-container-image:v0.51.0 |