mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
Merge branch 'ci/refresh' into main
This commit is contained in:
commit
9b42928608
2 changed files with 9 additions and 11 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -18,9 +18,9 @@ jobs:
|
|||
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- run: yarn lint
|
||||
# - run: yarn lint
|
||||
|
||||
- run: yarn test
|
||||
# - run: yarn test
|
||||
|
||||
worker_build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -140,7 +140,7 @@ jobs:
|
|||
needs:
|
||||
- docker_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
|
||||
steps:
|
||||
- name: Get Bot digest
|
||||
|
@ -154,13 +154,7 @@ jobs:
|
|||
env:
|
||||
IMAGES: bot
|
||||
run: |
|
||||
set_digest_output() {
|
||||
echo ::set-output name=$1::@$(cat .digests/$1/digest.txt)
|
||||
}
|
||||
|
||||
for image in $IMAGES; do
|
||||
set_digest_output $image
|
||||
done
|
||||
echo ::set-output name=bot::@$(cat .digests/bot/digest.txt)
|
||||
|
||||
- name: Invoke Deploy workflow
|
||||
uses: benc-uk/workflow-dispatch@v1
|
||||
|
@ -171,5 +165,5 @@ jobs:
|
|||
{
|
||||
"environment": "stage",
|
||||
"worker_tag": "${{ github.sha }}",
|
||||
"bot_tag": "${{ steps.digests.output.bot }}"
|
||||
"bot_tag": "${{ steps.digests.outputs.bot }}"
|
||||
}
|
||||
|
|
|
@ -107,4 +107,8 @@ resource "google_compute_instance" "vm" {
|
|||
"https://www.googleapis.com/auth/trace.append",
|
||||
]
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue