Release #8
Workflow file for this run
This file contains hidden or 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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: "Release" | |
env: | |
ASPNETCORE_ENVIRONMENT: "Production" | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
- name: Install NET 9 | |
uses: actions/setup-dotnet@v4.0.1 | |
with: | |
dotnet-version: '9.0.x' | |
- name: Get the version | |
id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: Publish Images to Docker Hub - Pre Release | |
if: ${{ github.event.release.prerelease == true }} | |
run: | | |
docker build . --file MobileConfiguration/Dockerfilewindows --tag stuartferguson/mobileconfigurationwindows:dev | |
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} | |
docker push stuartferguson/mobileconfigurationwindows:dev | |
- name: Publish Images to Docker Hub - Formal Release | |
if: ${{ github.event.release.prerelease == false }} | |
run: | | |
docker build . --file MobileConfiguration/Dockerfilewindows --tag stuartferguson/mobileconfigurationwindows:latest | |
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} | |
docker push stuartferguson/mobileconfigurationwindows:latest |