Skip to content

Merge branch 'main' of https://github.com/shrihari-prakash/nitrogen i… #35

Merge branch 'main' of https://github.com/shrihari-prakash/nitrogen i…

Merge branch 'main' of https://github.com/shrihari-prakash/nitrogen i… #35

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [release, main]
workflow_dispatch:
jobs:
build:
name: "Build & Publish"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Version
run: |
CI_VERSION=$(cat ./src/VERSION)
echo "CI_VERSION=$CI_VERSION" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile -t shrihariprakash/nitrogen:$CI_VERSION -t "shrihariprakash/nitrogen:latest"
- name: Docker Hub Login
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Docker Hub Push
run: docker push shrihariprakash/nitrogen --all-tags