~scrumplex/website

website/.build.yml -rw-r--r-- 878 bytes
e7962df7Sefa Eyeoglu chore: update node deps 16 days ago
                                                                                
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
image: archlinux
packages:
  - buildah
  - podman
sources:
  - https://git.sr.ht/~scrumplex/website
secrets:
  - 6fd54627-a8a7-4296-b59c-c6a25aa3a6e1
environment:
  REGISTRY_AUTH_FILE: /home/build/.auth.json
  REGISTRY: registry.sefa.cloud
  IMAGE_NAME: website

tasks:
  - prepare: |
      sudo touch /etc/subuid /etc/subgid
      sudo usermod --add-subuids 100000-165535 --add-subgids 100000-165535 build
      podman system migrate
  - build: |
      cd website
      GIT_REV=$(git rev-parse --short HEAD)
      GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
      buildah bud -t "${REGISTRY}/${IMAGE_NAME}:latest" -t "${REGISTRY}/${IMAGE_NAME}:${GIT_REV}" -t "${REGISTRY}/${IMAGE_NAME}:${GIT_BRANCH}"
      buildah push "${REGISTRY}/${IMAGE_NAME}:latest"
      buildah push "${REGISTRY}/${IMAGE_NAME}:${GIT_REV}"
      buildah push "${REGISTRY}/${IMAGE_NAME}:${GIT_BRANCH}"