Update workflow

This commit is contained in:
r-freeman 2024-08-23 15:26:55 +01:00
parent c91560869f
commit d4c5abe5f4

View File

@ -32,29 +32,13 @@ 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 - name: Push the Docker image
run: | run: |