Skip to content

Commit

Permalink
chore: Update Docker image tag and file path in deploy-golang-develop…
Browse files Browse the repository at this point in the history
….yml
  • Loading branch information
waveyboym committed Jun 13, 2024
1 parent 004d0c4 commit 96faf1f
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/deploy-golang-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,45 @@ defaults:
working-directory: occupi-backend

jobs:
deploy:
build-push-docker:
name: Build and Push Develop Docker Image
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Decrypt env variables
run: |
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --quiet --batch --yes --decrypt --passphrase-fd 0 .dev.env.gpg > .dev.env
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: occupi-backend
file: occupi-backend/Dockerfile.dev
platforms: linux/amd64,linux/arm64
push: true
no-cache: true
tags: ${{ secrets.DOCKER_USERNAME }}/occupi-backend:latest-develop

deploy:
name: Deploy for Develop
runs-on: ubuntu-latest
needs: build-push-docker

steps:
- name: Checkout code
Expand Down

0 comments on commit 96faf1f

Please sign in to comment.