Skip to content

Merge pull request #116 from StenAL/features #7

Merge pull request #116 from StenAL/features

Merge pull request #116 from StenAL/features #7

Workflow file for this run

on:
pull_request:
branches:
- master
push:
branches:
- master
name: Test build
jobs:
build:
name: Build docker image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v2
if: ${{ github.repository == 'philippvk/playforia-minigolf' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
tags: playforia-minigolf:latest
- name: Push Docker image
uses: docker/build-push-action@v5
if: ${{ github.repository == 'philippvk/playforia-minigolf' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
with:
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_NAMESPACE }}/playforia-minigolf:latest