.gitlab-ci.yml 569 Bytes
Newer Older
Ansgar Burchardt's avatar
Ansgar Burchardt committed
1
2
3
4
5
6
7
8
9
10
11
---
default:
  image: $CI_REGISTRY/ansgar/ansible-containers/podman:latest
  tags:
    - podman
  before_script:
    - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY

build-podman: &build
  script:
    - podman build -t ${image_name}:latest containers/${image_name}
12
    - podman push ${image_name}:latest docker://$CI_REGISTRY_IMAGE/${image_name}:latest
Ansgar Burchardt's avatar
Ansgar Burchardt committed
13
14
15
16
17
  variables:
    image_name: podman

build-ansible:
  <<: *build
18
  needs:
Ansgar Burchardt's avatar
Ansgar Burchardt committed
19
20
21
22
23
24
25
26
    - build-podman
  variables:
    image_name: ansible

build-host:
  <<: *build
  variables:
    image_name: host