remove debug, but reduce meta-ing the docker digest

This commit is contained in:
41666 2022-02-06 22:56:44 -05:00
parent d116caccf2
commit 06737f4bc7

View file

@ -134,29 +134,13 @@ jobs:
with: with:
name: ${{ matrix.dockerfile }}-digest name: ${{ matrix.dockerfile }}-digest
path: digest.txt path: digest.txt
trigger_deploy_test:
name: Test Deploy Artifacts
needs:
- docker_build
runs-on: ubuntu-latest
steps:
- name: Get Bot digest
uses: actions/download-artifact@v2
with:
name: bot-digest
path: .digests/bot
- run: |
ls .digests
ls .digests/bot
cat .digests/bot
cat .digests/bot/*
trigger_deploy: trigger_deploy:
name: Deploy to Stage name: Deploy to Stage
needs: needs:
- docker_build - docker_build
- worker_build - worker_build
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci/refresh'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Get Bot digest - name: Get Bot digest
@ -170,13 +154,7 @@ jobs:
env: env:
IMAGES: bot IMAGES: bot
run: | run: |
set_digest_output() { echo ::set-output name=$1::@$(cat .digests/bot/digest.txt)
echo ::set-output name=$1::@$(cat .digests/$1/digest.txt)
}
for image in $IMAGES; do
set_digest_output $image
done
- name: Invoke Deploy workflow - name: Invoke Deploy workflow
uses: benc-uk/workflow-dispatch@v1 uses: benc-uk/workflow-dispatch@v1