summaryrefslogtreecommitdiff
path: root/ci/build.yaml
blob: 547dbb2a40493cb6a558ab8bc380d7c1e006f0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
resources:
- name: repo
  type: git
  source:
    uri: ssh://git@git.jnsn.dev:52502/~/borgflag.git
    branch: main
    private_key: ((vbump.repo-key))
- name: final-image
  type: registry-image
  icon: docker
  source:
    repository: registry.jnsn.dev/borgflag
    username: ((borgflag.username))
    password: ((borgflag.password))
    tag: latest

jobs:
- name: update-pipeline
  plan:
    - get: repo
      trigger: true
    - set_pipeline: self
      file: repo/ci/build.yaml

- name: build-container
  plan:
  - get: repo
    trigger: true
  - task: build-image
    privileged: true
    config:
      platform: linux
      image_resource:
        type: registry-image
        source:
          repository: concourse/oci-build-task
      inputs:
        - name: repo
      outputs:
        - name: image
      params:
        CONTEXT: repo
        UNPACK_ROOTFS: "true"
      run:
        path: build
  - put: final-image
    params:
      image: image/image.tar