Docker image pre-pull.
This commit is contained in:
@@ -180,18 +180,18 @@ jobs:
|
||||
username: ${{ secrets.BOT_GITEA_USER }}
|
||||
password: ${{ secrets.BOT_GITEA_PASSWORD }}
|
||||
|
||||
# - name: Install Vault (only if not cached)
|
||||
# uses: cpanato/vault-installer@main
|
||||
# with:
|
||||
# version: ${{ env.HC_VAULT_VERSION }}
|
||||
|
||||
- name: Get env file
|
||||
uses: Simporter/get-env-file-from-vault@v1.0.3
|
||||
- name: Install Vault (only if not cached)
|
||||
uses: cpanato/vault-installer@main
|
||||
with:
|
||||
VAULT_ADDR: ${{ secrets.TREZ_VAULT_ADDR }}
|
||||
VAULT_USERNAME: ${{ secrets.VAULT_GITEA_USER }}
|
||||
VAULT_PASSWORD: ${{ secrets.VAULT_GITEA_PASSWORD }}
|
||||
VAULT_SECRETS_PATH: rinoa-docker/env
|
||||
version: ${{ env.HC_VAULT_VERSION }}
|
||||
|
||||
# - name: Get env file
|
||||
# uses: Simporter/get-env-file-from-vault@v1.0.3
|
||||
# with:
|
||||
# VAULT_ADDR: ${{ secrets.TREZ_VAULT_ADDR }}
|
||||
# VAULT_USERNAME: ${{ secrets.VAULT_GITEA_USER }}
|
||||
# VAULT_PASSWORD: ${{ secrets.VAULT_GITEA_PASSWORD }}
|
||||
# VAULT_SECRETS_PATH: rinoa-docker/env
|
||||
|
||||
- name: Gotify Notification
|
||||
uses: eikendev/gotify-action@master
|
||||
@@ -201,13 +201,13 @@ jobs:
|
||||
notification_title: "GITEA: Docker Compose Dry Run @ Rinoa"
|
||||
notification_message: "Starting Docker Compose dry run..."
|
||||
|
||||
# - name: Generate .env file for Docker Compose
|
||||
# run: |
|
||||
# vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
||||
# echo ${DOCKER_SVC_LIST}
|
||||
- name: Generate .env file for Docker Compose
|
||||
run: |
|
||||
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
||||
echo ${DOCKER_SVC_LIST}
|
||||
|
||||
- name: Pre-pull/build service images
|
||||
uses: ./.gitea/actions/prepull-images
|
||||
- name: Pre-pull/build service images in parallel
|
||||
uses: ./.github/actions/docker-img-pre-pull
|
||||
with:
|
||||
services: ${{ env.DOCKER_SVC_LIST }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user