ancient-australia-38408
10/10/2024, 8:55 PMstraight-alligator-6122
10/10/2024, 11:11 PMancient-australia-38408
10/14/2024, 11:22 PM--changed-since
but this seems to not be picking up any changes even though I explicitly have updated just a single app to test. I put this on pause to continue working on just getting build and deploy of all apps through unified pipeline.
In addition to the issue with detecting changes that I'm trying to determine trade off of doing pants package + docker build and tag + docker push
vs pants package + pants publish
.
The problem I'm seeing with leveraging pants publish
is how to deploy to different environments (which essentially are different GCP projects) that have different artifact repositories. Here is a sample file and you'll notice this line commented out
# changed_targets=$(pants --changed-since=$PANTS_BASE --changed-dependents=transitive list)
I then was checking with grep
to see if the service needed buildingstraight-alligator-6122
10/15/2024, 8:04 PMancient-australia-38408
10/15/2024, 11:28 PMpants.ci.toml
file which I mistakenly assumed was automatically picked up with the hierarchy of pants.toml
then pants.ci.toml
To solve the pants package with docker in pipeline issue I did the following (for anybody that ends up in this thread later)
# .gitlab-ci.yml
variables:
PANTS_CONFIG_FILES: "pants.ci.toml"
DOCKER_HOST: "<tcp://docker:2375>"
DOCKER_TLS_CERTDIR: ""
# pants.ci.toml
[docker]
tools = ["docker-credential-gcloud", "dirname", "readlink", "python3"]
env_vars = ["DOCKER_HOST=<tcp://docker:2375>", "DOCKER_TLS_CERTDIR=''"]