Skip to content

ci: build and push Docker image #1

ci: build and push Docker image

ci: build and push Docker image #1

Workflow file for this run

name: Build Docker image
on:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/ludovicm67/mongodb-check-slack:latest
ghcr.io/ludovicm67/mongodb-check-slack:main