diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1be5827..1143748 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,8 +3,9 @@ name: Docker Image CI on: push: branches: [ master ] - paths-ignore: - - "**.md" + paths-ignore: + - '**.md' + - ".vscode/**" pull_request: workflow_dispatch: schedule: @@ -41,12 +42,11 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image - if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v5.3.0 with: context: . file: ./Dockerfile platforms: ${{ env.DOCKER_PLATFORMS }} - push: true + push: ${{ github.ref == 'refs/heads/master' }} tags: ${{ env.DOCKER_IMAGE }}:${{ matrix.branch }} build-args: ${{ matrix.build-args }} \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..cb99a89 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-azuretools.vscode-docker" + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..7e5353f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,40 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build HLDS Image", + "type": "docker-build", + "dockerBuild": { + "context": "${workspaceFolder}", + "buildArgs": { + "APPBRANCH": "${input:betaBranch}" + }, + "tag": "hlds_image" + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "shell", + "label": "Run HLDS container", + "command": "docker run --rm -ti -p 27016:27016/udp hlds_image", + "dependsOn": [ + "Build HLDS Image" + ] + } + ], + "inputs": [ + { + "type": "pickString", + "id": "betaBranch", + "default": "true", + "description": "Select DepotsDownloader branch.", + "options": [ + "public", + "steam_legacy" + ] + } + ] +} \ No newline at end of file