Skip to content

Commit

Permalink
try: add workflow to build and push container
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Mistele committed Jan 28, 2025
1 parent e0ec0b3 commit ff20e3e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-node-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Publish Node Container

on:
push:
branches:
- main
- k-mistele/add-compose-configurations # for testing
paths:
- 'Dockerfile-node'
- 'node/**'
- '.github/**'
- '!docker-compose*'
- 'poetry.lock'
- 'pyproject.toml'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

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

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

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-node
push: true
platforms: linux/amd64,linux/arm64
tags: |
napthaai/node:latest
napthaai/node:${{ github.sha }}

0 comments on commit ff20e3e

Please sign in to comment.