Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Workflow to publish dev and feature branches #457

Merged
merged 11 commits into from
Mar 15, 2024
81 changes: 81 additions & 0 deletions .github/workflows/publish_feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Publish Feature Brunch

on:
push:
branches:
- main
- feature-**

jobs:
setup:
name: Setup jobs
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
backend:
- "tdrive/backend/node/**"
frontend:
- "tdrive/frontend/**"
onlyoffice-connector:
- "tdrive/connectors/onlyoffice-connector/**"
ldap-sync:
- "tdrive/backend/utils/ldap-sync/**"
nextcloud-migration:
- "tdrive/backend/utils/nextcloud-migration/**"

publish-feature:
runs-on: ubuntu-latest
strategy:
matrix:
targets: ${{ fromJSON(needs.setup.outputs.targets) }}
fail-fast: false
needs:
- setup
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Echo
run: echo Publish images with tag ${{ github.head_ref || github.ref_name }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
tags: |
${{ github.head_ref || github.ref_name }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to Linagora Registry
uses: docker/login-action@v3
with:
registry: docker-registry.linagora.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/bake-action@v4
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file-annotations }}
${{ steps.meta.outputs.bake-file }}
push: true
targets: ${{ matrix.targets }}
2 changes: 1 addition & 1 deletion tdrive/backend/node/test/e2e/run-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (process.env.CI || localDevTests.length === 0) {
if (localDevTests) {
console.log("Only this tests will be run:", localDevTests);
} else {
console.log("Will run all the tests");
console.log("Will run all the tests.");
}

function exec(command, args, debug = false) {
Expand Down
51 changes: 0 additions & 51 deletions tdrive/update_version.js

This file was deleted.

Loading