mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-24 23:55:42 +00:00
Update workflow
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m28s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m28s
This commit is contained in:
parent
76b92467f5
commit
a8411eafc3
@ -39,18 +39,6 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
secrets: |
|
||||
"SPOTIFY_CLIENT_ID=${{secrets.SPOTIFY_CLIENT_ID}}"
|
||||
"SPOTIFY_CLIENT_SECRET=${{secrets.SPOTIFY_CLIENT_SECRET}}"
|
||||
"SPOTIFY_REFRESH_TOKEN=${{secrets.SPOTIFY_REFRESH_TOKEN}}"
|
||||
"NEXT_PUBLIC_SITE_URL=${{secrets.NEXT_PUBLIC_SITE_URL}}"
|
||||
"GITHUB_ACCESS_TOKEN=${{secrets._GITHUB_ACCESS_TOKEN}}"
|
||||
"GITHUB_USERNAME=${{secrets._GITHUB_USERNAME}}"
|
||||
"GITHUB_CLIENT_ID=${{secrets._GITHUB_CLIENT_ID}}"
|
||||
"GITHUB_SECRET=${{secrets._GITHUB_SECRET}}"
|
||||
"NEXT_PUBLIC_SUPABASE_URL=${{secrets.NEXT_PUBLIC_SUPABASE_URL}}"
|
||||
"NEXT_PUBLIC_SUPABASE_ANON_KEY=${{secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY}}"
|
||||
"SUPABASE_SERVICE_ROLE_KEY=${{secrets.SUPABASE_SERVICE_ROLE_KEY}}"
|
||||
|
||||
- name: Stop the docker container
|
||||
continue-on-error: true
|
||||
|
25
Dockerfile
25
Dockerfile
@ -22,31 +22,6 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN --mount=type=secret,id=SPOTIFY_CLIENT_ID \
|
||||
--mount=type=secret,id=SPOTIFY_CLIENT_SECRET \
|
||||
--mount=type=secret,id=SPOTIFY_REFRESH_TOKEN \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SITE_URL \
|
||||
--mount=type=secret,id=GITHUB_ACCESS_TOKEN \
|
||||
--mount=type=secret,id=GITHUB_USERNAME \
|
||||
--mount=type=secret,id=GITHUB_CLIENT_ID \
|
||||
--mount=type=secret,id=GITHUB_SECRET \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SUPABASE_URL \
|
||||
--mount=type=secret,id=NEXT_PUBLIC_SUPABASE_ANON_KEY \
|
||||
--mount=type=secret,id=SUPABASE_SERVICE_ROLE_KEY \
|
||||
export SPOTIFY_CLIENT_ID=$(sed -n 's/^SPOTIFY_CLIENT_ID=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_CLIENT_SECRET=$(sed -n 's/^SPOTIFY_CLIENT_SECRET=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^SPOTIFY_REFRESH_TOKEN=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SITE_URL=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_ACCESS_TOKEN=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_USERNAME=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_CLIENT_ID=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^GITHUB_SECRET=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SUPABASE_URL=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^NEXT_PUBLIC_SUPABASE_ANON_KEY=\(.*\)$/\1/p' .env) && \
|
||||
export SPOTIFY_REFRESH_TOKEN=$(sed -n 's/^SUPABASE_SERVICE_ROLE_KEY=\(.*\)$/\1/p' .env)
|
||||
|
||||
RUN rm .env
|
||||
|
||||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
# Learn more here: https://nextjs.org/telemetry
|
||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||
|
Loading…
Reference in New Issue
Block a user