1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-03 20:25:18 +02:00

Release workflows

This commit is contained in:
Sean Morley 2024-08-06 09:02:55 -04:00
parent 143f84e910
commit 967a125b2f
5 changed files with 66 additions and 4 deletions

View file

@ -1,4 +1,4 @@
name: Upload Docker image to GHCR
name: Upload latest backend image to GHCR
on:
push:

31
.github/workflows/backend-release.yml vendored Normal file
View 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 }}

View file

@ -1,11 +1,11 @@
name: Upload Docker image to GHCR
name: Upload latest frontend image to GHCR
on:
push:
branches:
- main
paths:
- 'frontend/**'
- "frontend/**"
env:
IMAGE_NAME: "adventurelog-frontend"

31
.github/workflows/frontend-release.yml vendored Normal file
View 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 }}

View file

@ -151,7 +151,7 @@
<Marker
{lngLat}
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
width="24"