From b4f423d26e671ccd74b6b2b6da86067e03a9e73c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 26 Jan 2023 15:12:41 -0600 Subject: [PATCH] ci: add initial pipeline --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1070923 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Docker Image CI + +on: + push: + branches: + - Development + pull_request: + branches: + - Development + +jobs: + + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v3 + + - name: Login To Registry + uses: docker/login-action@v2 + with: + registry: "${{ vars.DOCKER_REGISTRY_URL }}" + username: "${{ secrets.DOCKER_REGISTRY_USER }}" + password: "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build Steamcmd Image + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + cache-from: type=registry,ref=${{ vars.DOCKER_REGISTRY_URL }}/steamcmd:latest + cache-to: type=inline + tags: "${{ vars.DOCKER_REGISTRY_URL }}/steamcmd:latest"