Skip to content

Commit a3d73d2

Browse files
committed
Fix docker config permissions in generate-index task
1 parent e055e1c commit a3d73d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/roles/operator-pipeline/templates/openshift/tasks/generate-index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ spec:
4040
# Copy the default credentials to the "output" workspace so they can be
4141
# accessed without root access in other steps.
4242
mkdir -p $DOCKER_CONFIG
43+
chmod 775 $DOCKER_CONFIG
4344
cp $HOME/.docker/config.json $DOCKER_CONFIG/config.json
44-
chmod 644 $DOCKER_CONFIG/config.json
45+
chmod 664 $DOCKER_CONFIG/config.json
4546
4647
# Pull the index image from a pre-configured imagestream in the current namespace.
4748
# It may be possible to eliminate this once sqlite-based index images are no
@@ -94,7 +95,6 @@ spec:
9495
> temp-config.json
9596
9697
mv temp-config.json $DOCKER_CONFIG/config.json
97-
rm temp-config.json
9898
fi
9999
100100
if [ -f "$FBC_FILE" ]; then

0 commit comments

Comments
 (0)