Skip to content

Commit

Permalink
lecture05 Build own hive metastore docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Svane20 committed Aug 27, 2024
1 parent 6942a9c commit 0e55957
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-push-hive-metastore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and push - service/interactive

on:
push:
paths:
- "services/hive-metastore/**"
- ".github/workflows/**"
branches: ["main"]
tags: ["v*"]
pull_request:
branches: ["main"]

env:
USERNAME: jah
REGISTRY: registry.gitlab.sdu.dk
IMAGE_NAME: bigdatarepo/hive-metastore

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USERNAME }}
password: ${{ secrets.GITLAB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:services/hive-metastore/"
push: true
tags: ${{ env.REGISTRY }}/${{ env.USERNAME }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 0e55957

Please sign in to comment.