Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brsbilgin committed Apr 22, 2024
1 parent 7e2811b commit 40273ee
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: container-builder

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest # self-hosted
##############################################################
## Configurations
##############################################################
env:
builder_ns: ghcr.io/saha-robotics/Ogm2Pgbm
tag: latest
##############################################################
steps:
# ###
# Login to github packages, our container registry
# ###
# - name: Login to GitHub Container Registry
# uses: docker/[email protected]
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
-
name: Checkout
uses: actions/checkout@v3

# ###
# build image
# ###
-
name: Build rmf
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile
build-args: |
BUILDER_NS=${{ env.builder_ns }}
TAG=${{ env.tag }}
push: true
tags: ${{ env.builder_ns }}/rmf:${{ env.tag }}


0 comments on commit 40273ee

Please sign in to comment.