feat(Register): register management created (#7) #16
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: dotnet CI release | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
version: | |
needs: [build, test] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
- name: Print new tag | |
run: echo ${{ steps.tag_version.outputs.new_tag }} | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: Build the Docker image | |
run: | | |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ steps.tag_version.outputs.new_tag }} . | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ steps.tag_version.outputs.new_tag }} | |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:latest . | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:latest | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
#- name: Build Docker image | |
# working-directory: this/path | |
#run: docker build -t test/mygoapp:test . | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install dependencies | |
working-directory: AnalysisData | |
run: dotnet restore ./AnalysisData.sln | |
- name: Build | |
working-directory: AnalysisData | |
run: dotnet build ./AnalysisData.sln | |
- name: Test with the dotnet CLI | |
working-directory: AnalysisData | |
run: dotnet test ./AnalysisData.sln | |
# deploy: | |
# runs-on: ubuntu-22.04 | |
# permissions: | |
# contents: write | |
# steps: | |
# - name: Log in to Docker Hub | |
# uses: docker/login-action@v2 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_PASS }} | |
# - name: Build the Docker image | |
# run: | | |
# docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ version.steps.tag_version.outputs.new_tag }} . | |
# docker push ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ version.steps.tag_version.outputs.new_tag }} |