Skip to content

Image Build

Image Build #4

Workflow file for this run

name: Image Build
on:
# configure manual trigger
workflow_dispatch:
env:
# The Dagger CLI uses the DAGGER_CLOUD_TOKEN environment variable to authenticate with Dagger Cloud
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }
- name: Generate and compile ci module
run: dagger functions -m ci/
- name: Build and publish module image
env:
HELM_IMAGE_REGISTRY_URL: ghcr.io
HELM_IMAGE_REGISTRY_REPOSITORY: ${{ github.repository }}/dagger-module-helm
HELM_IMAGE_REGISTRY_USER: ${{ github.actor }}
HELM_IMAGE_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
dagger -m ci/ \
call publish \
--registry ${HELM_IMAGE_REGISTRY_URL} \
--repository ${HELM_IMAGE_REGISTRY_REPOSITORY} \
--username ${HELM_IMAGE_REGISTRY_USER} \
--password ${HELM_IMAGE_REGISTRY_PASSWORD}