remove bot, force role order

This commit is contained in:
41666 2023-05-28 09:47:19 -04:00
parent 677d91b17b
commit dc1e7718bc
13 changed files with 15 additions and 1659 deletions

View file

@ -72,69 +72,6 @@ jobs:
path: packages/api/dist/index.mjs
destination: roleypoly-artifacts/workers/${{ github.sha }}
docker_build:
name: Docker Build & Publish
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/dependabot/') != true
needs:
- node_test
strategy:
matrix:
dockerfile:
- bot
steps:
- uses: actions/checkout@master
- uses: actions/cache@v2.1.6
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: |
ghcr.io/roleypoly/${{matrix.dockerfile}}
tag-sha: true
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: roleypoly
password: ${{ secrets.GHCR_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
id: docker
with:
context: ./packages/${{ matrix.dockerfile }}
file: ./packages/${{ matrix.dockerfile }}/Dockerfile
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
- name: Pre-deploy - Save digest.txt
run: |
echo "${{ steps.docker.outputs.digest }}" > digest.txt
- name: Pre-deploy - Make digest artifact
uses: actions/upload-artifact@v2.2.4
with:
name: ${{ matrix.dockerfile }}-digest
path: digest.txt
trigger_deploy:
name: Deploy to Stage
needs:
@ -143,19 +80,6 @@ jobs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Get Bot digest
uses: actions/download-artifact@v2
with:
name: bot-digest
path: .digests/bot
- name: Set digests as addressable
id: digests
env:
IMAGES: bot
run: |
echo ::set-output name=bot::@$(cat .digests/bot/digest.txt)
- name: Invoke Deploy workflow
uses: benc-uk/workflow-dispatch@v1
with:
@ -164,6 +88,5 @@ jobs:
inputs: |-
{
"environment": "stage",
"worker_tag": "${{ github.sha }}",
"bot_tag": "${{ steps.digests.outputs.bot }}"
"worker_tag": "${{ github.sha }}"
}