Skip to content

build(deps): Bump node from 1f09742 to 99981c3 #12

build(deps): Bump node from 1f09742 to 99981c3

build(deps): Bump node from 1f09742 to 99981c3 #12

Workflow file for this run

---
name: Build image
on:
workflow_dispatch:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
permissions:
contents: read # for actions/checkout to fetch code
env:
REGISTRY: ghcr.io
IMAGE_NAME_BASE: ${{ github.repository }}
jobs:
build-push-image:
runs-on: ubuntu-latest
permissions:
packages: write # for docker/build-push-action to push images
strategy:
matrix:
docker-image:
- gitops
- gitops-server
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set build-time flags
run: |
echo "LDFLAGS=$(make echo-ldflags)" >> $GITHUB_ENV
echo "FLUX_VERSION=$(make echo-flux-version)" >> $GITHUB_ENV
- uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
- uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/${{ matrix.docker-image }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
- uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
with:
context: .
file: ${{ matrix.docker-image }}.dockerfile
build-args: |
FLUX_VERSION=${{ env.FLUX_VERSION }}
LDFLAGS=${{ env.LDFLAGS }}
GIT_COMMIT=${{ github.sha }}
push: ${{ github.event_name != 'pull_request' && github.repository == 'weaveworks/weave-gitops' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max