Skip to content

ubuntu dockerfile and install mongo #2

ubuntu dockerfile and install mongo

ubuntu dockerfile and install mongo #2

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Publish
uses: docker/build-push-action@v4
with:
file: Dockerfile
platforms: linux/arm64, linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}:latest