Skip to content

Commit

Permalink
Docker Hub builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mieciu committed Jul 10, 2024
1 parent 4590a4b commit 6b3b579
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
push:
branches: [ "main" ]
workflow_dispatch: # Handy for testing
inputs:
VERSION:
description: 'Version number to tag the image with'
default: latest
required: true

jobs:
build-quesma-docker-image:
Expand All @@ -31,15 +36,27 @@ jobs:
username: _json_key
password: ${{ secrets.GCR_SERVICE_ACCOUNT_PRIVATE_KEY }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PAT }}

- name: Build and export
uses: docker/build-push-action@v6
with:
context: ${{ matrix.module }}/.
tags: europe-docker.pkg.dev/metal-figure-407109/quesma-nightly/quesma:${{ github.sha }}
tags: |
europe-docker.pkg.dev/metal-figure-407109/quesma-nightly/quesma:${{ github.sha }}
europe-docker.pkg.dev/metal-figure-407109/quesma-nightly/quesma:${{ github.event.inputs.RELEASE_TAG }}
quesma/quesma:${{ github.event.inputs.RELEASE_TAG }}
quesma/quesma:latest
# Pushes to GCR only for `main` branch builds
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
build-args: |
QUESMA_BUILD_SHA=${{ github.sha }}
QUESMA_VERSION=${{ github.event.inputs.RELEASE_TAG }}
QUESMA_BUILD_DATE=${{ github.event.head.timestamp }}
platforms: linux/amd64,linux/arm64
env:
DOCKER_BUILD_SUMMARY: false

0 comments on commit 6b3b579

Please sign in to comment.