Update README.md #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release and Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- beta | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Semantic Release | |
id: release | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
working_directory: ./src | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
@semantic-release/git | |
@semantic-release/exec | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to Docker Hub | |
if: steps.release.outputs.new_release_published == 'true' | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker Build and Push | |
if: steps.release.outputs.new_release_published == 'true' | |
run: | | |
docker build -t latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }} . | |
docker build -t latebitflip/bulwark.auth:latest . | |
docker push latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }} | |
docker push latebitflip/bulwark.auth:latest |