Skip to content

Commit

Permalink
Change to docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <[email protected]>
  • Loading branch information
bruth committed Feb 10, 2024
1 parent 987ab6e commit 195cd58
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,19 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

# Setting up Docker Buildx with docker-container driver is required
# at the moment to be able to use a subdirectory with Git context.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup builder
run: |
docker buildx create --name builder --bootstrap --use
- name: windowsservercore-1809
run: |
docker buildx build `
--platform windows/amd64 `
docker build `
--tag "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-windowsservercore-1809" `
--push `
./2.10.x/windowsservercore-1809
docker push "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-windowsservercore-1809"
- name: nanoserver-1809
run: |
docker buildx build `
docker build `
--build-arg "BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ github.ref_name }}-nanoserver-1809" `
--platform windows/amd64 `
--tag "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-windowsservercore-1809" `
--push `
./2.10.x/nanoserver-1809
docker push "${{ env.IMAGE_NAME }}:${{ github.ref_name }}-nanoserver-1809"

0 comments on commit 195cd58

Please sign in to comment.