Skip to content

Commit

Permalink
Merge pull request #228 from HarrisonWAffel/fix-release-workflow
Browse files Browse the repository at this point in the history
Fix release workflow
  • Loading branch information
HarrisonWAffel authored Sep 4, 2024
2 parents e119efa + d4d14f9 commit 8970b17
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Install Dependencies
run: |
go install github.com/magefile/[email protected]
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: build-binary
run: |
set PSModulePath=&&powershell -command "mage ci"
Expand All @@ -48,7 +49,7 @@ jobs:
# which cannot be installed onto windows VMs. Additionally, it is not possible to cross compile
# Windows images on linux. So, we're stuck with manual docker commands.
- name: Build Windows 2022
run: ./scripts/build-image.ps1 -ServerCoreVersion "ltsc2022" -Repo "${{ env.REPO }}" -Tag "${{ env.TAG }}"
run: ./scripts/build-image.ps1 -NanoServerVersion "ltsc2022" -Repo "${{ env.REPO }}" -Tag "${{ env.TAG }}"

- name: push images
run: |
Expand Down Expand Up @@ -81,16 +82,16 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Install Dependencies
run: |
go install github.com/magefile/[email protected]
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Install Dependencies
run: |
go install github.com/magefile/[email protected]
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: build-binary
run: |
set PSModulePath=&&powershell -command "mage ci"
Expand All @@ -99,7 +100,7 @@ jobs:
# which cannot be installed onto windows VMs. Additionally, it is not possible to cross compile
# Windows images on linux. So, we're stuck with manual docker commands.
- name: Build Windows 2019
run: ./scripts/build-image.ps1 -ServerCoreVersion "ltsc2019" -Repo "${{ env.REPO }}" -Tag "${{ env.TAG }}"
run: ./scripts/build-image.ps1 -NanoServerVersion "ltsc2019" -Repo "${{ env.REPO }}" -Tag "${{ env.TAG }}"

- name: push images
run: |
Expand Down

0 comments on commit 8970b17

Please sign in to comment.