mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Some checks failed
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Markdown Lint (push) Has been cancelled
Lint / ZSH Lint (zsh-noexec) (push) Has been cancelled
Lint / ZSH Lint (zsh-zcompile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, snippets) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Has been cancelled
100 lines
2.8 KiB
YAML
100 lines
2.8 KiB
YAML
name: Container images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v[0-9]+.[0-9]+.[0-9]+
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-containers-with-zsh:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
zsh_version:
|
|
- 5.8
|
|
- 5.9
|
|
steps:
|
|
- name: check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Grab git slugs (short commit id, branch etc.)
|
|
uses: rlespinasse/github-slug-action@v3.x
|
|
|
|
- name: set up qemu
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: setup docker buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
install: true
|
|
use: true
|
|
|
|
- name: login to github container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: build and push
|
|
id: docker_build_zsh_versions
|
|
uses: docker/build-push-action@v6
|
|
timeout-minutes: 90 # compiling older zsh versions take a long time
|
|
with:
|
|
push: ${{ github.event.number == 0 }}
|
|
file: ./docker/Dockerfile
|
|
build-args: |
|
|
ZINIT_ZSH_VERSION=${{ matrix.zsh_version }}-tcsetpgrp
|
|
tags: |
|
|
ghcr.io/${{ github.repository }}:zsh-${{ matrix.zsh_version }}
|
|
ghcr.io/${{ github.repository }}:zsh-${{ matrix.zsh_version }}-${{ env.GITHUB_SHA_SHORT }}
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
build-container-latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: get vcs details
|
|
uses: rlespinasse/github-slug-action@v3.x
|
|
|
|
- name: setup docker qemu
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: setup docker buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
install: true
|
|
use: true
|
|
|
|
- name: github container registry authentication
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: build & push new image
|
|
id: docker_build_latest
|
|
uses: docker/build-push-action@v6
|
|
if: github.ref == 'refs/heads/main'
|
|
with:
|
|
push: true
|
|
file: ./docker/Dockerfile
|
|
tags: |
|
|
ghcr.io/${{ github.repository }}:latest
|
|
ghcr.io/${{ github.repository }}:${{ env.GITHUB_SHA_SHORT }}
|
|
ghcr.io/${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|