2024-03-25 20:47:52 +00:00
|
|
|
name: Build webhook-deployer container
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build image
|
|
|
|
runs-on: ubuntu-latest
|
2024-05-16 08:08:14 +00:00
|
|
|
container: git.namesny.com/cluster/act-runner:v1@sha256:12ecb5835cd38f38bf9fc7589abc3751861bd737c612bb2a6194615810cb4f92
|
2024-03-25 20:47:52 +00:00
|
|
|
env:
|
2024-05-15 17:14:46 +00:00
|
|
|
IMAGE_NAME: kube-deployer
|
2024-03-25 20:47:52 +00:00
|
|
|
REGISTRY: git.namesny.com
|
|
|
|
REPO_OWNER: cluster
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-16 08:08:14 +00:00
|
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
|
2024-03-25 20:47:52 +00:00
|
|
|
- name: Login to Registry
|
2024-05-16 08:08:14 +00:00
|
|
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3
|
2024-03-25 20:47:52 +00:00
|
|
|
with:
|
|
|
|
registry: git.namesny.com
|
|
|
|
username: ${{ gitea.actor }}
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
run: |
|
2024-05-15 17:14:46 +00:00
|
|
|
set -a
|
2024-05-15 20:30:17 +00:00
|
|
|
. ./versions.env
|
2024-05-15 17:14:46 +00:00
|
|
|
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 .
|
2024-03-25 20:47:52 +00:00
|
|
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|