Skip to content

Adds deployment information to README.md #8

Adds deployment information to README.md

Adds deployment information to README.md #8

Workflow file for this run

name: Build and Test
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup and execute Gradle 'test' task on Backend
uses: gradle/gradle-build-action@v2
with:
arguments: test
build-root-directory: backend
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: false
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/tri-game:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max