-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.26 KB
/
push-distr.yaml
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
34
35
36
37
38
39
40
41
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Push Distr Application Version
on:
push:
tags:
- '*'
jobs:
push-action:
strategy:
matrix:
include:
- DISTR_TOKEN_SECRET: DISTR_TOKEN
DISTR_APPLICATION_ID_VAR: DISTR_APPLICATION_ID
- DISTR_TOKEN_SECRET: DISTR_TOKEN_PMIG
DISTR_APPLICATION_ID_VAR: DISTR_APPLICATION_ID_PMIG
name: Push Released Docker Compose to Distr
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Create Distr Version
id: distr-create-version
uses: glasskube/distr-create-version-action@v1.2.1
with:
api-token: ${{ secrets[matrix.DISTR_TOKEN_SECRET] }}
api-base: 'https://demo.distr.sh/api/v1'
application-id: ${{ vars[matrix.DISTR_APPLICATION_ID_VAR] }}
version-name: ${{ github.ref_name }}
compose-file: ${{ github.workspace }}/deploy/docker-compose.yaml
template-file: ${{ github.workspace }}/deploy/env.template
- name: Print Application Version ID
id: output
run: echo "${{ steps.distr-create-version.outputs.created-version-id }}"