Files
steamcmd/.gitea/workflows/build.yml
MSWS 70a6aab8f3
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m1s
Add yml to paths
2025-03-16 10:51:29 -07:00

30 lines
696 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- '.gitea/workflows/build.yml'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login registry.msws.xyz -u ms --password-stdin
- name: Build and push Docker image
run: |
IMAGE_NAME=registry.msws.xyz/steamcmd:lastest
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
env:
DOCKER_BUILDKIT: 1 # Enable buildkit for faster builds