-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (27 loc) · 854 Bytes
/
main.yml
File metadata and controls
30 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on: [push, pull_request]
env:
REGISTRY: "ghcr.io"
IMAGE: "ghcr.io/librepcb/librepcb-dev"
jobs:
windows-x64:
name: Windows x86_64
runs-on: windows-2025
env:
TAG: "windowsservercore-ltsc2025-qt6.6-64bit"
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Docker Login
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${{ env.REGISTRY }}" -u "${{ github.actor }}" --password-stdin
- name: Docker Pull
run: docker pull "${{ env.IMAGE }}:${{ env.TAG }}"
continue-on-error: true
- name: Docker Build
run: docker build -t "${{ env.IMAGE }}:${{ env.TAG }}" "${{ env.TAG }}"
- name: Docker Push
run: docker push "${{ env.IMAGE }}:${{ env.TAG }}"