Skip to content

Commit

Permalink
Add docker login to deploy script
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Rodriguez <[email protected]>
  • Loading branch information
lucasrod16 committed Sep 28, 2024
1 parent 47b1a86 commit 1d6fbf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
- name: Deploy
env:
IMAGE_VERSION: ${{ github.ref_name }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./scripts/deploy.sh
2 changes: 2 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ cd ui && npm ci --legacy-peer-deps && npm run build
cd - || exit 1

GOOS=linux GOARCH=amd64 go build -o ./bin/api

docker login --username="${DOCKER_USERNAME}" --password="${DOCKER_PASSWORD}"
docker buildx build --platform="linux/amd64" --push -t "lucasrod96/oss-contribute:${IMAGE_VERSION}" .

terraform init
Expand Down

0 comments on commit 1d6fbf7

Please sign in to comment.