Skip to content

Commit

Permalink
Merge pull request #24 from jakobhviid/dev
Browse files Browse the repository at this point in the history
Added GitHub action
  • Loading branch information
anderslaunerbaek authored Nov 24, 2023
2 parents d71dc3b + f728191 commit 4fcbf1b
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-push-interactive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and push - service/interactive

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

env:
DOCKERHUB_USERNAME: jakobhviid
IMAGE_NAME: sdu-big-data-course-interactive


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:services/interactive/"
push: true
tags: ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest
39 changes: 39 additions & 0 deletions .github/workflows/build-push-kafka-connect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and push - service/kafka-connect

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

env:
DOCKERHUB_USERNAME: jakobhviid
IMAGE_NAME: sdu-big-data-course-kafka-connect
CP_VERSION: 7.3.1

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:services/kafka-connect/"
build-args: "CP_VERSION=${{ env.CP_VERSION }}"
push: true
tags: ${{ env.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}-${{ env.CP_VERSION }}:latest
1 change: 0 additions & 1 deletion services/datahub/README.md

This file was deleted.

1 change: 0 additions & 1 deletion services/hive/README.md

This file was deleted.

0 comments on commit 4fcbf1b

Please sign in to comment.