Merge pull request #8330 from opf/feature/build-docker-image-from-action

Build docker image using Github Action

[ci skip]
pull/8399/head
Oliver Günther 5 years ago committed by GitHub
commit a351daff23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/workflows/docker.yml

@ -0,0 +1,24 @@
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: Publish to registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: openproject/community-test
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_semver: true
cache: ${{ github.event_name != 'schedule' }}
Loading…
Cancel
Save