Update circle ci config

This commit is contained in:
Eugene Burmakin 2025-02-02 22:38:06 +01:00
parent 005b74eb65
commit 6b0c6e1ed0

View file

@ -22,7 +22,6 @@ jobs:
POSTGRES_DB: test_database POSTGRES_DB: test_database
POSTGRES_PASSWORD: mysecretpassword POSTGRES_PASSWORD: mysecretpassword
- image: redis:7.0 - image: redis:7.0
steps: steps:
- checkout - checkout
- run: - run:
@ -45,23 +44,18 @@ jobs:
build-and-push: build-and-push:
executor: executor:
name: docker/docker name: docker/docker
# You can also specify a different image if required.
parameters: parameters:
tag: tag:
type: string type: string
default: "rc" default: "rc"
steps: steps:
- checkout - checkout
# Login to Docker Hub using the orb command. The orb expects environment
# variables DOCKERHUB_USERNAME and DOCKERHUB_PASSWORD (or DOCKERHUB_TOKEN).
- docker/login: - docker/login:
username: "$DOCKERHUB_USERNAME" username: "$DOCKERHUB_USERNAME"
password: "$DOCKERHUB_TOKEN" password: "$DOCKERHUB_TOKEN"
# Build and publish the Docker image.
- docker/build-publish: - docker/build-publish:
image: "freikin/dawarich:<< parameters.tag >>" image: "freikin/dawarich:<< parameters.tag >>"
dockerfile: ./docker/Dockerfile.dev dockerfile: ./docker/Dockerfile.dev
# Set additional options if needed:
build-args: "" build-args: ""
extra-build-args: "--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6" extra-build-args: "--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"
registry: "docker.io" registry: "docker.io"
@ -77,7 +71,6 @@ workflows:
- test - test
filters: filters:
branches: branches:
ignore: /.*/ # Ignore branches; run only on tag builds (or adjust as needed) ignore: /.*/ # Run only on tag builds
tags: tags:
only: /.*/ # Run for any tag; adjust regex if you want more specific tag matching only: /.*/ # Run for any tag
tag: "<< pipeline.parameters.tag >>"