Skip to content

Merge pull request #567 from H2-invent/l10n_feature/development #73

Merge pull request #567 from H2-invent/l10n_feature/development

Merge pull request #567 from H2-invent/l10n_feature/development #73

name: Create Pre-Release
env:
GITHUB_TOKEN: ${{ secrets.token }}
on:
push:
branches:
- feature/development
- unstable/*
jobs:
artifact:
uses: h2-invent/jitsi-admin/.github/workflows/task-artifact.yml@devops
test:
uses: h2-invent/jitsi-admin/.github/workflows/task-test.yml@devops
needs:
- artifact
create_release:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"
- uses: actions/download-artifact@v3
with:
name: artifact_${{github.run_number}}
- run: unzip -qq artifact_${{github.run_number}}.zip -d artifact
- name: Write semantic Version in .env.local
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "laF_version=2.0.0-dev"
replace: "laF_version=DEV-CI-${{ steps.date.outputs.date }}-${{github.run_number}}"
regex: false
include: "artifact/.env"
- name: Archive Release for application
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: 'application.zip'
exclusions: '*.git* *.github* /*node_modules/* /*nodejs/* /*var/* .editorconfig'
directory: artifact
- name: Archive Release for websocket
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: 'websocket.zip'
directory: artifact/nodejs
- name: Create new Release with semantic-version tag
uses: ncipollo/release-action@v1
id: create_release
with:
draft: false
prerelease: true
name: DEV-CI-${{ steps.date.outputs.date }}-${{github.run_number}}
tag: DEV-CI-${{ steps.date.outputs.date }}-${{github.run_number}}
artifacts: artifact/application.zip,artifact/nodejs/websocket.zip
artifactContentType: application/zip
upload_dockerhub_main:
needs:
- test
uses: h2-invent/jitsi-admin/.github/workflows/task-upload-docker-hub.yml@devops
with:
reponame: 'h2invent/jitsi-admin-main'
dockerfile_path: './Dockerfile'
directory: '.'
version: "h2invent/jitsi-admin-main:dev-ci-unstable-${{github.run_number}}"
secrets:
dockerhub_password: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
upload_dockerhub_websocket:
needs:
- test
uses: h2-invent/jitsi-admin/.github/workflows/task-upload-docker-hub.yml@devops
with:
reponame: 'h2invent/jitsi-admin-websocket'
dockerfile_path: './nodejs/Dockerfile'
directory: './nodejs'
version: "h2invent/jitsi-admin-websocket:dev-ci-unstable-${{github.run_number}}"
secrets:
dockerhub_password: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}