-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.25 KB
/
Create_Image.yml
File metadata and controls
47 lines (39 loc) · 1.25 KB
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
name: Create Image
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure Node
uses: actions/setup-node@v1
with:
registry-url: https://npm.pkg.github.com/
scope: '@newchromantics'
node-version: 12
- name: Install Github Packages
run: npm i
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_KEY_ACTIONS }}
- id: lowerCaseRepo
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.repository }}
# gr: github.event.repository.name is JUST ray-mon (no org)
# github.repository is not from an event though....
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{ steps.lowerCaseRepo.outputs.lowercase }}/raymon-server-image
tag_with_ref: true