mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +00:00
This commit is contained in:
parent
722894ec4f
commit
025daa2955
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.git
|
.git
|
||||||
.next
|
.next
|
||||||
|
.env
|
@ -32,13 +32,33 @@ jobs:
|
|||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
mirrors = ["mirror.gcr.io"]
|
mirrors = ["mirror.gcr.io"]
|
||||||
|
|
||||||
- name: Build and push Docker image
|
# - name: Build and push Docker image
|
||||||
uses: https://github.com/docker/build-push-action@v6
|
# uses: https://github.com/docker/build-push-action@v6
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ./Dockerfile
|
# file: ./Dockerfile
|
||||||
push: true
|
# push: true
|
||||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
# tags: ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build --secret id=SPOTIFY_CLIENT_ID,src=.env \
|
||||||
|
--secret id=SPOTIFY_CLIENT_SECRET,src=.env \
|
||||||
|
--secret id=SPOTIFY_REFRESH_TOKEN,src=.env \
|
||||||
|
--secret id=NEXT_PUBLIC_SITE_URL,src=.env \
|
||||||
|
--secret id=GITHUB_ACCESS_TOKEN,src=.env \
|
||||||
|
--secret id=GITHUB_USERNAME,src=.env \
|
||||||
|
--secret id=GITHUB_CLIENT_ID,src=.env \
|
||||||
|
--secret id=GITHUB_SECRET,src=.env \
|
||||||
|
--secret id=NEXT_PUBLIC_SUPABASE_URL,src=.env \
|
||||||
|
--secret id=NEXT_PUBLIC_SUPABASE_ANON_KEY,src=.env \
|
||||||
|
--secret id=SUPABASE_SERVICE_ROLE_KEY,src=.env \
|
||||||
|
-t ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1 \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Push the Docker image
|
||||||
|
run: |
|
||||||
|
docker image push ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||||
|
|
||||||
- name: Stop the docker container
|
- name: Stop the docker container
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
Loading…
Reference in New Issue
Block a user