-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 1.17 KB
/
publish-matrix-invite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: publish-matrix-invite
on:
workflow_call:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get all src files that have changed
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
packages/matrix-invite/**/*
.github/workflows/**
- name: Publish to dockerhub
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: linagora/matrix-invite
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
workdir: "${{ github.workspace }}/packages/matrix-invite"
context: .
buildoptions: "-t linagora/matrix-invite -f Dockerfile"
tags: "latest,${{ steps.date.outputs.date }}"