File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ name : Publish Docker image
7
+
8
+ on :
9
+ # For every new published release, build the docker image and publish it to GH
10
+ release :
11
+ types : [published]
12
+
13
+ # For every push to master, build the docker image and publish it to GH
14
+ push :
15
+ branches :
16
+ - master
17
+
18
+ jobs :
19
+ publish_docker_image :
20
+ name : Push Docker image to Github Container Registry
21
+ runs-on : ubuntu-latest
22
+ permissions :
23
+ packages : write
24
+ contents : read
25
+ steps :
26
+ - name : Check out the repo
27
+ uses : actions/checkout@v2
28
+
29
+ - name : Log in to the Github Container Registry
30
+ uses : docker/login-action@v1
31
+ with :
32
+ registry : ghcr.io
33
+ username : ${{ github.actor }}
34
+ password : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - name : Extract metadata (tags, labels) for Docker Image
37
+ id : meta
38
+ uses : docker/metadata-action@v2
39
+ with :
40
+ images : |
41
+ ghcr.io/${{ github.repository }}
42
+
43
+ - name : Build and push Docker image
44
+ uses : docker/build-push-action@v2
45
+ with :
46
+ context : .
47
+ push : true
48
+ tags : ${{ steps.meta.outputs.tags }}
49
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM node:22.6.0-slim
5
5
RUN apt-get update && apt-get upgrade -y
6
6
7
7
# Install required O.S. packages
8
- RUN apt-get install -y git python make g++
8
+ RUN apt-get install -y git python3 make g++
9
9
10
10
# Create the application workdir
11
11
RUN mkdir -p /home/node/app && chown -R node:node /home/node/app
You can’t perform that action at this time.
0 commit comments