Skip to content

Commit

Permalink
add docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-zhirnov committed Dec 26, 2023
1 parent 5379814 commit 5a86893
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .docker/node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ COPY --chown=node:node . .
RUN yarn build

CMD ["yarn", "start"]

#EXPOSE 3010
31 changes: 31 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Node resizer
uses: docker/build-push-action@v5
with:
context: .
file: ./.docker/node.Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/boundless-s3-resizer:latest

0 comments on commit 5a86893

Please sign in to comment.