uranio 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +49 -2
- package/docker/.bash_docker +6 -0
- package/docker/Dockerfile +15 -0
- package/package.json +1 -1
|
@@ -5,9 +5,14 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- master
|
|
7
7
|
|
|
8
|
+
env:
|
|
9
|
+
REGISTRY: registry.hub.docker.com
|
|
10
|
+
REGISTRY_USERNAME: x71c9
|
|
11
|
+
IMAGE_NAME: uranio
|
|
12
|
+
|
|
8
13
|
jobs:
|
|
9
|
-
|
|
10
|
-
name:
|
|
14
|
+
publish:
|
|
15
|
+
name: NPM Publish
|
|
11
16
|
runs-on: ubuntu-latest
|
|
12
17
|
steps:
|
|
13
18
|
- uses: actions/checkout@v2
|
|
@@ -18,3 +23,45 @@ jobs:
|
|
|
18
23
|
- run: npm publish --access public || true
|
|
19
24
|
env:
|
|
20
25
|
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
|
26
|
+
|
|
27
|
+
update_docker_image:
|
|
28
|
+
needs: "publish"
|
|
29
|
+
name: Update docker image
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- name: Check out the repo
|
|
33
|
+
uses: actions/checkout@v3
|
|
34
|
+
|
|
35
|
+
- name: Configure SSH agent
|
|
36
|
+
uses: webfactory/ssh-agent@v0.5.4
|
|
37
|
+
with:
|
|
38
|
+
ssh-private-key: ${{ secrets.GH_PRIVATE_KEY }}
|
|
39
|
+
|
|
40
|
+
- name: Set up QEMU
|
|
41
|
+
uses: docker/setup-qemu-action@v2
|
|
42
|
+
|
|
43
|
+
- name: Set up Docker Buildx
|
|
44
|
+
id: buildx
|
|
45
|
+
uses: docker/setup-buildx-action@v2
|
|
46
|
+
with:
|
|
47
|
+
install: true
|
|
48
|
+
|
|
49
|
+
- name: Log in to Docker Registry
|
|
50
|
+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
51
|
+
with:
|
|
52
|
+
registry: ${{ env.REGISTRY }}
|
|
53
|
+
username: ${{ env.REGISTRY_USERNAME }}
|
|
54
|
+
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
|
55
|
+
|
|
56
|
+
# - name: Set outputs
|
|
57
|
+
# id: vars
|
|
58
|
+
# run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
|
59
|
+
|
|
60
|
+
- name: Build and push Docker image
|
|
61
|
+
uses: docker/build-push-action@v3
|
|
62
|
+
with:
|
|
63
|
+
context: docker/
|
|
64
|
+
push: true
|
|
65
|
+
platforms: linux/amd64,linux/arm64
|
|
66
|
+
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_USERNAME }}/${{ env.IMAGE_NAME }}:latest
|
|
67
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#syntax=docker/dockerfile:experimental
|
|
2
|
+
|
|
3
|
+
FROM node:16
|
|
4
|
+
WORKDIR /app
|
|
5
|
+
|
|
6
|
+
RUN chown -R node.node /app
|
|
7
|
+
|
|
8
|
+
COPY .bash_docker /app
|
|
9
|
+
RUN cat .bash_docker >> /root/.bashrc
|
|
10
|
+
RUN cat .bash_docker >> /home/node/.bashrc
|
|
11
|
+
|
|
12
|
+
RUN mkdir ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
|
13
|
+
|
|
14
|
+
RUN --mount=type=ssh,uid=1000 yarn global add uranio
|
|
15
|
+
|