Skip to content

Commit 6c78e66

Browse files
authored
fix: docker build (#1009)
* fix: docker build * add back publish docker image
1 parent 9849ac0 commit 6c78e66

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM node:22.6.0-slim
55
RUN apt-get update && apt-get upgrade -y
66

77
# 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++
99

1010
# Create the application workdir
1111
RUN mkdir -p /home/node/app && chown -R node:node /home/node/app

0 commit comments

Comments
 (0)