diff --git a/.github/workflows/deploy_image.yml b/.github/workflows/deploy_image.yml new file mode 100644 index 0000000..0c33cdf --- /dev/null +++ b/.github/workflows/deploy_image.yml @@ -0,0 +1,30 @@ +name: push_migrations + +on: + push: + # branches: + # - main + +jobs: + push_migrations: + 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