Skip to content

create mvp for svelte markdown blog #7

create mvp for svelte markdown blog

create mvp for svelte markdown blog #7

Workflow file for this run

name: Release
on:
push:
branches:
- main
env:
IMAGE_NAME: ghcr.io/isala404/isala-me
DOCKER_BUILDKIT: 1
jobs:
build-publish:
permissions: write-all
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker build -t $IMAGE_NAME:latest .
- run: docker tag $IMAGE_NAME:latest $IMAGE_NAME:commit-${GITHUB_SHA:0:8}
- run: docker push $IMAGE_NAME --all-tags
- name: Update deployment
run: |
curl --fail-with-body -v http://ci.isala.me/api/update-images -d '{"user": "${{ github.actor }}", "pat": "${{ secrets.GITHUB_TOKEN }}", "image": "isala404/isala-me"}'
timeout-minutes: 5