mirror of
https://github.com/docker/getting-started-app.git
synced 2025-07-04 16:31:09 -04:00
Compare commits
4 Commits
dependabot
...
1b8da5acb7
Author | SHA1 | Date | |
---|---|---|---|
1b8da5acb7 | |||
f2d13b8483 | |||
b5e58510b6 | |||
b13a9f1409 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
Dockerfile
|
34
.github/docker-image.yml
vendored
Normal file
34
.github/docker-image.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Docker Image CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:latest
|
||||
ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:${{ github.sha }}
|
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"prettify": "prettier -l --write \"**/*.js\"",
|
||||
"test": "jest",
|
||||
"dev": "nodemon src/index.js"
|
||||
"dev": "nodemon -L src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.18.2",
|
||||
|
Reference in New Issue
Block a user