Skip to content

Update earthly/earthly Docker tag to v0.8.11 #92

Update earthly/earthly Docker tag to v0.8.11

Update earthly/earthly Docker tag to v0.8.11 #92

---
name: Build Kairos ZSH Bundle
on: # yamllint disable-line rule:truthy
push:
branches:
- main
paths:
- .github/workflows/kairos-zsh-bundle.yml
- ansible/roles/zsh/**
- images/kairos-zsh-bundle/**
pull_request:
branches:
- main
paths:
- .github/workflows/kairos-zsh-bundle.yml
- ansible/roles/zsh/**
- images/kairos-zsh-bundle/**
jobs:
build-container:
env:
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
EARTHLY_ORG: marinatedconcrete
EARTHLY_SATELLITE: config-repo
runs-on: "ubuntu-latest"
permissions:
contents: "read"
packages: "write"
steps:
- uses: earthly/actions-setup@v1.0.13
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# renovate: datasource=docker depName=earthly/earthly
version: "v0.8.11"
- uses: "actions/checkout@v4.1.5"
- name: "Login to GitHub Container Hub"
run: docker login --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" ghcr.io
- id: tags
run: echo "TAG=$BRANCH" | tr / _ >> "$GITHUB_ENV"
env:
BRANCH: ${{ github.event_name != 'pull_request' && 'latest' || format('pr-{0}', github.head_ref) }}
- name: "Build Kairos ZSH Bundle"
run: earthly ./images/kairos-zsh-bundle/+image --TAG=$TAG
env:
EARTHLY_CI: true
EARTHLY_PUSH: true
# Only one platform per https://docs.earthly.dev/docs/earthly-command#build-options
EARTHLY_PLATFORMS: linux/amd64