Skip to content

Commit

Permalink
Adds a build file
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynforthewyn committed Jun 24, 2023
1 parent 3a843fd commit 6a208cf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
env:
DOCKERIMAGE: playtechnique/playtechnique.io:${{ github.run_attempt }}
runs-on: ubuntu-latest

steps:
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and Publish the Docker image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ env.DOCKERIMAGE }}

0 comments on commit 6a208cf

Please sign in to comment.