Skip to content

fix: deploy-do-web issue with secrets #3

fix: deploy-do-web issue with secrets

fix: deploy-do-web issue with secrets #3

Workflow file for this run

name: Deploy DO Web
on:
pull_request:
branches:
- main
env:
FILENAME: Dockerfile.web
IMAGE_NAME: gitcoinco/indexer-web
IMAGE_TAG: ${{ github.sha }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build -f "$FILENAME" -t "$IMAGE_NAME:$IMAGE_TAG" . # build the Docker image using envs defined above
- name: Push Docker image
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
run: |-
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
docker push "$IMAGE_NAME:$IMAGE_TAG"