mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 04:35:19 +02:00
Release workflows
This commit is contained in:
parent
143f84e910
commit
967a125b2f
5 changed files with 66 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Upload Docker image to GHCR
|
name: Upload latest backend image to GHCR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
31
.github/workflows/backend-release.yml
vendored
Normal file
31
.github/workflows/backend-release.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Publish backend release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: "adventurelog-backend"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
upload:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.ACESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker build -t $IMAGE_NAME:${{ github.event.release.tag_name }} ./backend
|
||||||
|
|
||||||
|
- name: Tag Docker image
|
||||||
|
run: docker tag $IMAGE_NAME:${{ github.event.release.tag_name }} ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
- name: Push Docker image to GHCR
|
||||||
|
run: docker push ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:${{ github.event.release.tag_name }}
|
4
.github/workflows/frontend-latest.yml
vendored
4
.github/workflows/frontend-latest.yml
vendored
|
@ -1,11 +1,11 @@
|
||||||
name: Upload Docker image to GHCR
|
name: Upload latest frontend image to GHCR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'frontend/**'
|
- "frontend/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "adventurelog-frontend"
|
IMAGE_NAME: "adventurelog-frontend"
|
||||||
|
|
31
.github/workflows/frontend-release.yml
vendored
Normal file
31
.github/workflows/frontend-release.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Publish frontend release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: "adventurelog-frontend"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
upload:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.ACESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker build -t $IMAGE_NAME:${{ github.event.release.tag_name }} ./frontend
|
||||||
|
|
||||||
|
- name: Tag Docker image
|
||||||
|
run: docker tag $IMAGE_NAME:${{ github.event.release.tag_name }} ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
- name: Push Docker image to GHCR
|
||||||
|
run: docker push ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:${{ github.event.release.tag_name }}
|
|
@ -151,7 +151,7 @@
|
||||||
<Marker
|
<Marker
|
||||||
{lngLat}
|
{lngLat}
|
||||||
on:click={() => (clickedName = name)}
|
on:click={() => (clickedName = name)}
|
||||||
class="grid h-8 w-8 place-items-center rounded-full border border-gray-200 bg-red-300 text-black shadow-2xl focus:outline-2 focus:outline-black"
|
class="grid h-8 w-8 place-items-center rounded-full border border-gray-200 bg-red-300 text-black shadow-md"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
width="24"
|
width="24"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue