Commit eba9e1f3 authored by nimrod's avatar nimrod
Browse files

Add Bats image.

parent c438618c
Loading
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
@@ -4,7 +4,10 @@ include:
  # pre-commit hook. This can also be better if you're working on different
  # branches but want to use the hooks from the master branch.
  # yamllint disable-line rule:line-length
  - remote: https://git.shore.co.il/shore/ci-templates/-/raw/master/templates/pre-commit.yml
  - remote: |-
      https://git.shore.co.il/shore/ci-templates/-/raw/master/templates/pre-commit.yml
  - remote: |-
      https://git.shore.co.il/shore/ci-templates/-/raw/master/templates/containerfiles.yml

lint templates:
  image: registry.shore.co.il/ci-images:pre-commit
@@ -29,3 +32,19 @@ lint templates:
  cache:
    paths:
      - .cache/

# bats image:

build-bats:
  extends: .container-build
  variables:
    CONTEXT: images/bats

push-bats:
  extends: .container-push
  variables:
    IMAGE: ci-images
    TAG: bats
  needs:
    - job: build-bats
      artifacts: true
+1 −0
Original line number Diff line number Diff line
*

images/bats/Dockerfile

0 → 100644
+11 −0
Original line number Diff line number Diff line
FROM registry.hub.docker.com/library/alpine:3.14
# hadolint ignore=DL3018
RUN apk add --update --no-cache \
        bats \
        build-base \
        docker-cli \
        git \
        openssh-client-default \
        openssl \
    && \
    rm -rf /var/cache/apk/* /tmp/* /var/tmp/*