OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/.github/workflows/docker.yml

30 lines
968 B

name: Docker
on:
# Scheduled workflows run on the latest commit on the default or base branch
schedule:
- cron: '20 2 * * *' # Daily at 02:20
push:
tags:
- v*
jobs:
publish:
# restrict this job to base repo for now
if: github.repository == 'opf/openproject'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build & Push
id: build_and_push
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: openproject/community
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_semver: true
cache: ${{ github.event_name != 'schedule' }}
- name: Test
run: |
docker run -d -p 8080:80 -e SUPERVISORD_LOG_LEVEL=debug -e SECRET_KEY_BASE=secret ${{ steps.build_and_push.outputs.digest }}
sleep 5
wget -O- --retry-connrefused http://localhost:8080/api/v3