TR2X/.github/workflows/build_docker.yml
Marcin Kurczewski 73da1d8568
initial commit
2023-10-01 13:24:43 +02:00

27 lines
642 B
YAML

name: Build Docker toolchain
on:
- workflow_dispatch
jobs:
publish_docker_image:
name: Build Docker toolchain
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: .
fetch-depth: 0
- name: Build Docker image
run: |
docker build -t "rrdash/tr2x:latest" . -f docker/game-win/Dockerfile
docker push "rrdash/tr2x:latest"