Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build-push-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build & Push

on:
push:
branches: ["main"]

jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: "cpdevopsint"
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: cpdevopsint/loftylizard:v1.0.0

14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alpine as build
# pinned to specific version

WORKDIR /app

COPY . .

RUN apk add --update nodejs npm

RUN npm install

# ---

CMD ["npm", "start"]