-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (60 loc) · 1.7 KB
/
release.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: docker/setup-buildx-action@v3
with:
install: true
- name: Set variables
id: vars
run: |
echo ::set-output name=repo_name::$(echo ${GITHUB_REPOSITORY#*/*})
- uses: docker/metadata-action@v5
id: docker_meta
with:
images: ${{ github.repository }}
- uses: docker/build-push-action@v5
with:
load: true
build-args: |
APP_HOME=/home/node/${{ steps.vars.outputs.repo_name }}
tags: ${{ github.repository }}
labels: ${{ steps.docker_meta.outputs.labels }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm clean-install
- run: npx [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: upgrade-services.yaml
ref: master
repo: restorecommerce/charts
token: "${{ secrets.CHARTS_WORKFLOW_TOKEN }}"