Skip to content

Commit

Permalink
adding apprenticeship-action to actions dir
Browse files Browse the repository at this point in the history
  • Loading branch information
melippmann committed Nov 4, 2023
1 parent 64dc98e commit f58ef75
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 7 deletions.
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Include any files or directories that you don't want to be copied to your
# container here (e.g., local build artifacts, temporary files, etc.).
#
# For more help, visit the .dockerignore file reference guide at
# https://docs.docker.com/engine/reference/builder/#dockerignore-file

**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.next
**/.cache
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/build
**/dist
LICENSE
README.md
21 changes: 16 additions & 5 deletions .github/actions/apprenticeship-action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: Apprenticeship-action

on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: run tests
uses: liatrio/github-actions/apprentice-action@master
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t liatrio-build .
- name: run image
run: docker run -dp 80:80 liatrio-build
- name: run tests
uses: liatrio/github-actions/apprentice-action@808117af9b4a1e57c4cb79dbcb2d25de5ea3c68d

3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express')
const app = express()
const port = 80
const hostname='localhost'

var jsonObj = {
"message": "My name is Meher Lippmann",
Expand All @@ -15,5 +16,5 @@ app.get('/', (req, res) => {
})

app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
console.log(`server running at http;//${hostname}:${port}`)
})
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
environment:
NODE_ENV: production
ports:
- 80:80
- 81:80

# The commented out section below is an example of how to define a PostgreSQL
# database that your application can use. `depends_on` tells Docker Compose to
Expand Down

0 comments on commit f58ef75

Please sign in to comment.