Skip to content

Merge pull request #8 from musicorum-app/revert-7-parties #7

Merge pull request #8 from musicorum-app/revert-7-parties

Merge pull request #8 from musicorum-app/revert-7-parties #7

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- kotlin-rework
workflow_dispatch:
jobs:
build:
name: "Build image"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
"ghcr.io/${{ github.repository }}:latest"
"ghcr.io/${{ github.repository }}:${{ github.run_id }}"
labels: "version=${{ github.run_id }}"
#
# deploy-stage:
# name: "Staging deploy"
# runs-on: ubuntu-latest
# needs: build
# environment: staging
#
# steps:
# - name: Deploy Stage
# uses: fjogeleit/http-request-action@v1
# with:
# url: ${{ secrets.DEPLOY_WEBHOOK_URL }}
# method: 'POST'
# timeout: 30000