diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..cf5f4ee --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,54 @@ +name: Build startup image + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +env: + # Use docker.io for Docker Hub if empty + REGISTRY: https://cs-registry.ddnss.de + USER: chris + PASS: q',\H(Od:G3).Xv<#!5P + + +jobs: + Build-and-release-image: + + runs-on: ubuntu-latest + + steps: + - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e + with: + php-version: '7.4' + + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Directory Permissions + run: chmod -R 777 pdf + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action + with: + registry: ${{ env.REGISTRY }} + username: ${{ env.USER }} + password: ${{ env.PASS }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action + with: + images: ${{ env.REGISTRY }}/ri-st/startup + + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action + with: + context: . + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.drone.yml b/__.drone.yml similarity index 100% rename from .drone.yml rename to __.drone.yml