Skip to content

Build Steam Docker Image and Deploy #38

Build Steam Docker Image and Deploy

Build Steam Docker Image and Deploy #38

Workflow file for this run

name: Build Steam Docker Image and Deploy
on:
# Run on every main branch push
push:
branches: [ "main" ]
# Run every Monday at 1PM UTC (9AM EST)
schedule:
- cron: "0 13 * * 1"
jobs:
# Deploy a new image to DockerHub
build-and-publish-dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Build all supported container images
- name: Build Containers
run: make all
# Authenticate with DockerHub prior to publishing
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# Publish our built container images
- name: Push docker images to DockerHub
run: |
docker push thetestgame/steam:stable
docker push thetestgame/steam:latest
docker push thetestgame/steam:winehq
docker push thetestgame/steam:experimental
# Keep the workflow alive
- uses: gautamkrishnar/keepalive-workflow@v1 # using the workflow with default settings
# Update our DockerHub README
docker-hub-description:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: thetestgame/steam