-
Notifications
You must be signed in to change notification settings - Fork 103
53 lines (45 loc) · 1.42 KB
/
develop.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
name: develop
on:
push:
branches:
- "develop"
jobs:
setup:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.RUNNER_GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- run: |
git config --global user.email "[email protected]"
git config --global user.name "Norbert Takács"
- run: npm ci
# - run: npm test
# - run: node node_modules/.bin/release-it --ci --preRelease=alpha
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: bokker/rss.to.telegram:develop,bokker/rss.to.telegram:${{ steps.package-version.outputs.current-version}}-alpha
update-stack:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Update deployed stack
run: |
curl --fail --insecure --request POST --url ${{ secrets.DEV_HOOK }}