This repository has been archived by the owner on Feb 21, 2025. It is now read-only.
Merge pull request #78 from PRIME-TU-Delft/development #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker build & push image | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set lowercase repository owner environment variable (funky workaround because Docker is dumb) | |
run: | | |
echo "OWNER_LOWERCASE=${OWNER,,}" >>${GITHUB_ENV} | |
env: | |
OWNER: '${{ github.repository_owner }}' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ env.OWNER_LOWERCASE }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: ghcr.io/${{ env.OWNER_LOWERCASE }}/graph:latest |