Skip to content

Build Mongo Image

Build Mongo Image #1

Workflow file for this run

name: Build Image
on:
# push:
# branches: [ "master" ]
workflow_dispatch:
env:
DOCKER_REGISTRY: ghcr.io
IMAGE_NAME: ayaka-notes/overleaf-toolkit/mongo
IMAGE_TAG: 4.4
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
# - name: Build Overleaf image
# run: |
# cd .devcontainer/init-mongo
# make build-base
# make build-community
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./.devcontainer/init-mongo
file: ./.devcontainer/init-mongo/Dockerfile
push: true
tags: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}