Skip to content

Commit

Permalink
Updated Docker in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 3, 2024
1 parent 445410e commit 3265b4a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,47 @@
version: 2

jobs:
build:
docker:
- image: php:8-cli
- image: php:8.3-cli-bookworm
environment:
GOSS_FILES_STRATEGY: cp
DOCKER_VERSION: 24.0.5
working_directory: ~/repo

steps:
- checkout

- setup_remote_docker

- run:
name: Install Docker
command: |
curl -L -o "/tmp/docker-${DOCKER_VERSION}.tgz" "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz" \
&& tar -xz -C /tmp -f "/tmp/docker-${DOCKER_VERSION}.tgz" \
&& mv /tmp/docker/* /usr/bin \
&& docker --version
- run:
name: Lint Dockerfile
command: docker run --rm -i hadolint/hadolint < Dockerfile

- run:
name: Install goss
command: curl -fsSL https://goss.rocks/install | sh && goss --version

- run:
name: Build image
command: docker build -t drevops/ci-runner:test-ci .

- run:
name: Show images information
command: docker images

- run:
name: Test image
command: dgoss run -i drevops/ci-runner:test-ci

- run:
name: Show versions
command: ./versions.sh "drevops/ci-runner:test-ci"

0 comments on commit 3265b4a

Please sign in to comment.