Update .gitea/workflows/build.yaml
All checks were successful
Build & Push / build (push) Successful in 1m1s
All checks were successful
Build & Push / build (push) Successful in 1m1s
This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
||||
build:
|
||||
runs-on: [k8s-runner-01]
|
||||
env:
|
||||
REGISTRY: registry.staging:5000
|
||||
REGISTRY: registry.staging
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
IMAGE_TAG: ${{ gitea.sha }}
|
||||
steps:
|
||||
@@ -27,20 +27,23 @@ jobs:
|
||||
- name: "Print Output Docker"
|
||||
id: output
|
||||
run: |
|
||||
echo "${{ steps.generator.outputs.docker }}" > Dockerfile
|
||||
echo "${{ steps.generator.outputs.docker }}" > docker.file
|
||||
echo "${{ steps.generator.outputs.k8s }}" > k8s.yml
|
||||
|
||||
- name: "Get namespace"
|
||||
- name: "Generate Dockerfile"
|
||||
run: curl -o Dockerfile https://n8n.mceasy.cloud/webhook/generator/manifest?type=docker
|
||||
|
||||
- name: "Makesure Dockerfile"
|
||||
run: |
|
||||
mkdir -p .kube
|
||||
echo "${{ vars.KUBECONFIG_PA_DEVOPS }}" > .kube/config
|
||||
cat .kube/config
|
||||
kubectl get deployment -n staging
|
||||
ls -alth .
|
||||
cat Dockerfile
|
||||
cat docker.file
|
||||
cat k8s.yml
|
||||
|
||||
- name: "Create buildkitd.toml"
|
||||
run: |
|
||||
cat <<EOF > buildkitd.toml
|
||||
[registry."registry.staging:5000"]
|
||||
[registry."registry.staging"]
|
||||
http = true
|
||||
insecure = true
|
||||
EOF
|
||||
@@ -63,8 +66,13 @@ jobs:
|
||||
-t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG \
|
||||
--push .
|
||||
|
||||
- name: "Checking Images"
|
||||
run: |
|
||||
docker images
|
||||
|
||||
- name: "Cleanup builder"
|
||||
if: always()
|
||||
run: docker buildx rm $BUILDER_NAME || true
|
||||
run: |
|
||||
docker buildx rm $BUILDER_NAME || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user