kube-deployer/.gitea/workflows/release.yaml

33 lines
1.1 KiB
YAML

name: Build webhook-deployer container
on:
push:
branches:
- main
jobs:
build:
name: Build image
runs-on: ubuntu-latest
container: git.namesny.com/cluster/act-runner:v1@sha256:12ecb5835cd38f38bf9fc7589abc3751861bd737c612bb2a6194615810cb4f92
env:
IMAGE_NAME: kube-deployer
REGISTRY: git.namesny.com
REPO_OWNER: cluster
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Login to Registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3
with:
registry: git.namesny.com
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
run: |
set -a
. ./versions.env
set +a
docker build --build-arg=SOPS_VERSION=${SOPS_VERSION} \
--build-arg=KUSTOMIZE_SOPS_VERSION=${KUSTOMIZE_SOPS_VERSION} \
-t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest