Skip to content

Adds a nice title and publish time for this old p4merge article #36

Adds a nice title and publish time for this old p4merge article

Adds a nice title and publish time for this old p4merge article #36

name: Docker Image CI
on:
push:
paths:
- Dockerfile
- 'website/**'
workflow_dispatch:
jobs:
build:
env:
DOCKERIMAGE: docker.io/playtechnique/website:${{ github.run_number }}
runs-on: ubuntu-latest
outputs:
dockerimage: ${{ steps.set-docker-image.outputs.dockerimage }}
steps:
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and Publish the Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ env.DOCKERIMAGE }}
- name: what is the docker image and set it to github output
id: set-docker-image
run: |
echo ${{ env.DOCKERIMAGE }}
release-to-production:
uses: ./.github/workflows/release_website.yaml
with:
docker-image-tag: ${{ github.run_number }}