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 env: IMAGE_NAME: kube-deployer REGISTRY: git.namesny.com REPO_OWNER: cluster steps: - name: Checkout uses: actions/checkout@v4 - name: Login to Registry uses: docker/login-action@v3 with: registry: git.namesny.com username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push run: | set -a source 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