diff --git a/.concourse/pipeline.yml b/.concourse/pipeline.yml deleted file mode 100644 index 7e598c9..0000000 --- a/.concourse/pipeline.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -resource_types: -- name: helm - type: docker-image - source: - repository: ghcr.io/typositoire/concourse-helm3-resource - -resources: -- name: blog.git - type: git - icon: github - source: - uri: https://code.icb4dc0.de/prskr/blog.git - -- name: caddy-image - type: docker-image - source: - repository: code.icb4dc0.de/prskr/ci-images/caddy - -- name: blog-chart - type: helm - source: - cluster_url: ((k8s-credentials.url)) - cluster_ca: ((k8s-credentials.ca-crt)) - token: ((k8s-credentials.token)) - release: blog - namespace: blog - -jobs: -- name: build - plan: - - get: blog.git - trigger: true - - get: caddy-image - trigger: true - - task: build-container-image - file: blog.git/.concourse/tasks/image.yml - input_mapping: {repo: blog.git} - - - put: blog-chart - params: - chart: blog.git/deploy/helm - override_values: - - key: image.tag - path: blog.git/.git/refs/heads/main - type: string \ No newline at end of file diff --git a/.concourse/tasks/image.yml b/.concourse/tasks/image.yml deleted file mode 100644 index a4f8d6f..0000000 --- a/.concourse/tasks/image.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -platform: linux - -image_resource: - name: kaniko-debug - type: registry-image - source: - repository: gcr.io/kaniko-project/executor - tag: debug - -inputs: - - name: repo - path: . - -params: - GITEA_USER: ((gitea-credentials.user)) - GITEA_TOKEN: ((gitea-credentials.token)) - -run: - path: sh - args: - - -ce - - | - echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json - /kaniko/executor \ - --destination code.icb4dc0.de/prskr/blog:latest \ - --destination code.icb4dc0.de/prskr/blog:$(cat .git/ref) \ - --context . \ No newline at end of file diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 6b992ec..0000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: github pages - -on: - push: - branches: - - main # Set a branch to deploy - pull_request: - -jobs: - deploy: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: 'latest' - # extended: true - - - name: Build - run: hugo --minify - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public