Skip to content

ci(actions): add a workflow to push the image whenever a push is done… #4

ci(actions): add a workflow to push the image whenever a push is done…

ci(actions): add a workflow to push the image whenever a push is done… #4

Workflow file for this run

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