fix(ci): secure existing Docker authentication directories
This commit is contained in:
1 parent
a137285e35
commit
354b785863
3 files changed
+8
-4
No files matched your search
@@ -95,7 +95,8 @@ jobs:
|
||||
GITEA_RELEASE_TOKEN: ${{ secrets.RAWMARK_GITEA_TOKEN }}
|
||||
run: |
|
||||
set -eu
|
||||
mkdir -m 700 "$DOCKER_CONFIG"
|
||||
mkdir -p "$DOCKER_CONFIG"
|
||||
chmod 700 "$DOCKER_CONFIG"
|
||||
python3 scripts/release.py promote-development "$TEMP_IMAGE"
|
||||
- name: Clean only this attempt's resources and credentials
|
||||
if: always()
|
||||
@@ -131,7 +132,8 @@ jobs:
|
||||
- name: Deploy only the independent development instance
|
||||
run: |
|
||||
set -eu
|
||||
mkdir -m 700 "$DOCKER_CONFIG"
|
||||
mkdir -p "$DOCKER_CONFIG"
|
||||
chmod 700 "$DOCKER_CONFIG"
|
||||
printf '%s' "$GITEA_RELEASE_TOKEN" | docker login git.134333.xyz --username eezd --password-stdin
|
||||
python3 scripts/deploy.py development --directory /docker/main/rawmark-dev \
|
||||
--image "$DEPLOY_IMAGE" --commit "$DEPLOY_COMMIT" --version "$DEPLOY_VERSION" \
|
||||
|
||||
Reference in new issue
Block a user