-
Notifications
You must be signed in to change notification settings - Fork 62
55 lines (48 loc) · 1.54 KB
/
myself-full.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: buildenvs/myself-full
on:
release:
types: [released]
jobs:
myself-full-push:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v3
with:
registry: index.unikraft.io
username: ${{ secrets.REG_USERNAME }}
password: ${{ secrets.REG_TOKEN }}
- name: Build OCI image
uses: docker/build-push-action@v6
with:
push: false
file: ./buildenvs/myself.Dockerfile
tags: kraftkit.sh/myself-full:latest
target: kraftkit-full
platforms: linux/amd64
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/myself.tar
- name: Upload Docker image artifact
uses: actions/upload-artifact@v3
with:
name: oci-images
path: /tmp/myself-full.tar
- name: Push OCI Image
uses: docker/build-push-action@v6
if: ${{ github.event_name == 'push' }}
with:
push: true
tags: index.unikraft.io/kraftkit.sh/myself-full:latest
target: kraftkit-full
platforms: linux/amd64
file: ./buildenvs/myself.Dockerfile
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}