Skip to content

Commit

Permalink
ci(actions): add a workflow to push the image whenever a push to main…
Browse files Browse the repository at this point in the history
… is done
  • Loading branch information
danvergara committed Nov 23, 2023
1 parent ccfc5ae commit 5e1dedb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Morphos Server Container Image

on:
push:
branches:
- main

jobs:
push_morphos_image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@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:
context: .
push: true
tags: ghcr.io/${{ github.actor }}/morphos-server:latest

0 comments on commit 5e1dedb

Please sign in to comment.