Skip to content

Zephyr 4.0.0

Zephyr 4.0.0 #50

Workflow file for this run

name: Push image to ghcr.io
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions:
packages: write
contents: read # This is required for actions/checkout
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Workaround for running out of disk space
run: |
df -h
jq '."data-root" = "/mnt/docker"' < /etc/docker/daemon.json | tee daemon.json.tmp
sudo cp -v daemon.json.tmp /etc/docker/daemon.json
sudo mkdir -p /mnt/docker
sudo systemctl restart docker
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
tags: ghcr.io/${{ github.actor }}/zephyr-ready:${{ github.event_name == 'workflow_dispatch' && 'latest' || github.ref_name }}
- run: df -h