1 Commits

Author SHA1 Message Date
7391a09ee2 Testing actions 2024-01-11 12:30:52 -08:00
2 changed files with 18 additions and 38 deletions

View File

@ -0,0 +1,18 @@
name: Build Production Container
run-name: $Env:GITHUB_REF_TYPE Production Build
on:
push:
tags:
- *.*.*
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Deploy
run: |
echo "${{ secrets.CONTAINER_REGISTRY_ACCESS_TOKEN }}" | docker login git.grosinger.net --password-stdin
docker build -t git.grosinger.net/west-sound-hall:$Env:GITHUB_REF_TYPE .
docker push git.grosinger.net/west-sound-hall:$Env:GITHUB_REF_TYPE

View File

@ -1,38 +0,0 @@
name: Build Production Image
run-name: $GITHUB_REF_TYPE Production Build
on:
push:
tags:
- '*.*.*'
jobs:
Build Production Image:
runs-on: ubuntu-latest
container:
image: git.grosinger.net/tgrosinger/runner-image:0.0.3
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Gitea Docker registry
uses: docker/login-action@v2
with:
registry: git.grosinger.net
username: tgrosinger
password: ${{ secrets.CONTAINER_REGISTRY_ACCESS_TOKEN }}
- name: Create env file for Nextjs verification step
run: |
echo "POSTMARK_SERVER_TOKEN=dummy-token" > /workspace/tgrosinger/west-sound-hall/.env
echo "NEXT_PUBLIC_SITE_URL=http://localhost:3000" >> /workspace/tgrosinger/west-sound-hall/.env
cat /workspace/tgrosinger/west-sound-hall/.env
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: git.grosinger.net/tgrosinger/west-sound-hall:${{ gitea.ref_name }}