mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +00:00
Update workflow
This commit is contained in:
parent
c91560869f
commit
d4c5abe5f4
@ -32,29 +32,13 @@ jobs:
|
||||
[registry."docker.io"]
|
||||
mirrors = ["mirror.gcr.io"]
|
||||
|
||||
# - name: Build and push Docker image
|
||||
# uses: https://github.com/docker/build-push-action@v6
|
||||
# with:
|
||||
# context: .
|
||||
# file: ./Dockerfile
|
||||
# push: true
|
||||
# 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: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{secrets.DOCKER_HUB_USERNAME}}/portfolio:v1
|
||||
|
||||
- name: Push the Docker image
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user