Skip to content

v0.9.0

v0.9.0 #29

Workflow file for this run

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 }}