Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amitie10g authored Oct 2, 2023
1 parent d66c5b5 commit 42b1820
Showing 1 changed file with 20 additions and 43 deletions.
63 changes: 20 additions & 43 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,17 @@ on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: false
schedule:
- cron: '0 0 */15 * *'

jobs:

ltsc2022:
strategy:
matrix:
VS_VER: ["2022", "2019", "2017"]
runs-on: windows-2022
env:
WIN_VER: ltsc2022
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,21 +25,18 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: vs2022
run: docker build --file Dockerfile --tag amitie10g/visualstudio2022-workload-vctools --tag amitie10g/visualstudio2022-workload-vctools:ltsc2022 --build-arg WIN_VER=ltsc2022 --build-arg VS_VER=2022 .
- name: vs2019
run: docker build --file Dockerfile --tag amitie10g/visualstudio2019-workload-vctools --tag amitie10g/visualstudio2019-workload-vctools:ltsc2022 --build-arg WIN_VER=ltsc2022 --build-arg VS_VER=2019 .
- name: vs2017
run: docker build --file Dockerfile --tag amitie10g/visualstudio2017-workload-vctools --tag amitie10g/visualstudio2017-workload-vctools:ltsc2022 --build-arg WIN_VER=ltsc2022 --build-arg VS_VER=2017 .
- name: Push2022
run: docker push amitie10g/visualstudio2022-workload-vctools --all-tags
- name: Push2019
run: docker push amitie10g/visualstudio2019-workload-vctools --all-tags
- name: Push2016
run: docker push amitie10g/visualstudio2017-workload-vctools --all-tags
- name: build
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/visualstudio${{ matrix.VS_VER }}-workload-vctools -t ${{ secrets.DOCKERHUB_USERNAME }}/visualstudio${{ matrix.VS_VER }}-workload-vctools:${{ env.WIN_VER }} --build-arg WIN_VER=${{ env.WIN_VER }} --build-arg VS_VER=${{ matrix.VS_VER }} .
- name: push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/visualstudio${{ matrix.VS_VER }}-workload-vctools --all-tags

ltsc2019:
strategy:
matrix:
VS_VER: ["2022", "2019", "2017"]
runs-on: windows-2019
env:
WIN_VER: ltsc2019
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -60,15 +45,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: vs2022
run: docker build --file Dockerfile --tag amitie10g/visualstudio2022-workload-vctools:ltsc2019 --build-arg WIN_VER=ltsc2019 --build-arg VS_VER=2022 .
- name: vs2019
run: docker build --file Dockerfile --tag amitie10g/visualstudio2019-workload-vctools:ltsc2019 --build-arg WIN_VER=ltsc2019 --build-arg VS_VER=2019 .
- name: vs2017
run: docker build --file Dockerfile --tag amitie10g/visualstudio2017-workload-vctools:ltsc2019 --build-arg WIN_VER=ltsc2019 --build-arg VS_VER=2017 .
- name: Push2022
run: docker push amitie10g/visualstudio2022-workload-vctools --all-tags
- name: Push2019
run: docker push amitie10g/visualstudio2019-workload-vctools --all-tags
- name: Push2016
run: docker push amitie10g/visualstudio2017-workload-vctools --all-tags
- name: build
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/visualstudio${{ matrix.VS_VER }}-workload-vctools:${{ env.WIN_VER }} --build-arg WIN_VER=${{ env.WIN_VER }} --build-arg VS_VER=${{ matrix.VS_VER }} .
- name: push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/visualstudio${{ matrix.VS_VER }}-workload-vctools --all-tags

0 comments on commit 42b1820

Please sign in to comment.