Skip to content

Commit

Permalink
update db image build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Jan 26, 2024
1 parent f64cbfc commit 730072e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-database-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
paths:
- 'database/**'
- '.github/workflows/build-database-docker.yml'
workflow_dispatch:

env:
Expand All @@ -16,7 +17,7 @@ jobs:

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

- name: Log in to Docker Hub
uses: docker/login-action@v1
Expand All @@ -25,15 +26,15 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push to Docker Hub
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: database
push: true
tags: vizzuality/landgriffon-database:${{ github.ref != 'refs/heads/main' && 'staging' || 'production' }}

- name: Push "latest" tag to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: database
push: true
Expand Down

0 comments on commit 730072e

Please sign in to comment.