Files
steamcmd/.gitea/workflows/build.yml
MSWS 11af58b423
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3s
Init
2025-03-16 10:25:22 -07:00

29 lines
641 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
paths:
- 'Dockerfile'
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 ms -u --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