Skip to content

Merge branch 'release/v0.2.0' #45

Merge branch 'release/v0.2.0'

Merge branch 'release/v0.2.0' #45

name: Docker Image Nginx
env:
# 🖊️ EDIT to change the image registry settings.
# Registries such as GHCR, Quay.io, and Docker Hub are supported.
IMAGE_REGISTRY: ghcr.io/utrechtuniversity
IMAGE_REGISTRY_USER: ${{ github.actor }}
IMAGE_REGISTRY_PASSWORD: ${{ github.token }}
on:
push:
branches: [ "master", "develop", "feature/da_opschonen" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: Nginx
tags: latest
dockerfiles: |
./openshift/nginx.dockerfile
- name: Push to registry
id: push-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_REGISTRY_USER }}
password: ${{ env.IMAGE_REGISTRY_PASSWORD }}