Files
startup/.gitea/workflows/release.yml
2024-02-24 15:45:16 +01:00

53 lines
1.3 KiB
YAML

name: Build startup image
on:
push:
branches: [ master ]
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