-
Notifications
You must be signed in to change notification settings - Fork 104
51 lines (44 loc) · 1.45 KB
/
master.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
name: master
on:
push:
branches:
- "master"
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 install
# - run: npm test
- run: node node_modules/.bin/release-it --ci
- 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:latest,bokker/rss.to.telegram:${{ steps.package-version.outputs.current-version}}
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: peterevans/dockerhub-description