Skip to content

docs: cleaning up repo for OSS #74

docs: cleaning up repo for OSS

docs: cleaning up repo for OSS #74

Workflow file for this run

name: CD
on:
push:
branches: [ main ]
jobs:
deploy:
if: ${{ github.event.head_commit.committer.name != 'Versioning Action' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.KEY }}
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
- uses: tool3/bump@master
id: bump
with:
github_token: ${{ secrets.KEY }}
user: 'Versioning Action'
email: '[email protected]'
branch: 'main'
- uses: azure/docker-login@v1
with:
login-server: ${{ secrets.ACR_LOGIN }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: 'Push images to ACR'
run: |
echo "${{ steps.bump.outputs.version }}"
docker build . --tag ${{ secrets.ACR_LOGIN }}/guybot:${{ steps.bump.outputs.version }} --tag ${{ secrets.ACR_LOGIN }}/guybot:latest
docker push ${{ secrets.ACR_LOGIN }}/guybot:${{ steps.bump.outputs.version }}
docker push ${{ secrets.ACR_LOGIN }}/guybot:latest