Add dcs.lock file check. #91
This file contains 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: Build DCS-World-Dedicated-Server-Docker Image | |
on: | |
# run it during pull request | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
# define job to build and publish docker image | |
build-docker-image: | |
name: Build DCS-World-Dedicated-Server-Docker image only | |
# run only when code is compiling and tests are passing | |
runs-on: ubuntu-latest | |
# steps to perform in job | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Force permissions fix. | |
run: sudo apt-get update && sudo apt-get install dos2unix -y && cd docker && bash dos2unix.sh | |
- name: Check DL link still working. | |
run: source docker/src/helper_functions/get_dl_link | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image only | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./docker | |
file: ./docker/Dockerfile | |
push: false | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |