Skip to content

Commit

Permalink
ci: build and push Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed Sep 21, 2023
1 parent 03237c7 commit 80d4c0b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.gitignore
Dockerfile
.env
.github
39 changes: 39 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

0 comments on commit 80d4c0b

Please sign in to comment.