feat: the monorepo man

This commit is contained in:
ereti
2022-12-01 21:10:23 +00:00
parent 73f30f9f46
commit 1af9942147
26 changed files with 159 additions and 85 deletions
+9 -6
View File
@@ -16,10 +16,10 @@ jobs:
working-directory: ./github-bot
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Docker Hub login
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
@@ -28,16 +28,19 @@ jobs:
run: 'echo "VERSION_TAG=$(cat package.json | grep version | head -1 | awk -F: ''{ print $2 }'' | sed ''s/[", ]//g'')" >> $GITHUB_ENV'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile.ghbot
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/tachi-gh-bot:stable,${{ secrets.DOCKER_USERNAME }}/tachi-gh-bot:${{ env.VERSION_TAG }},
tags: ${{ secrets.DOCKER_USERNAME }}/tachi-gh-bot:stable,${{ secrets.DOCKER_USERNAME }}/tachi-gh-bot:${{ env.VERSION_TAG }}
file: ./Dockerfile.ghbot
cache-from: type=gha,scope=$GITHUB_REF_NAME-github-bot
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-github-bot
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}