-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 965 Bytes
/
build.yaml
File metadata and controls
37 lines (34 loc) · 965 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
31
32
33
34
35
36
37
name: host-process-scratch-image
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build:
runs-on: windows-2022
steps:
- name: login to GitHub container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: build image
run: |
.\New-ScratchImage.ps1
- name: push image
if: ${{ github.event_name != 'pull_request' }}
shell: cmd
run: |
docker image load -i build\host-process-scratch.tar
set /p image_id=< build\image-id.txt
docker image tag %image_id% ghcr.io/marosset/host-process-scratch-image:latest
docker image push ghcr.io/marosset/host-process-scratch-image:latest