Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniciusMarchi committed Jan 21, 2025
1 parent 459735b commit 8ccee5d
Show file tree
Hide file tree
Showing 30 changed files with 1,439 additions and 9 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-and-push-airflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build & Push Custom Airflow

on:
push:
branches: [ "main" ]
paths:
- "docker/airflow/**"
- "dags/**"
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- 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: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/custom-airflow
tags: |
type=raw,value=latest
- name: Build & Push Custom Airflow Image
uses: docker/build-push-action@v4
with:
context: .
file: docker/airflow/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
48 changes: 48 additions & 0 deletions .github/workflows/build-and-push-data-ingestion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build & Push Data Ingestion Task

on:
push:
branches: [ "main" ]
paths:
- "docker/data_ingestion/**"
- "src/data_ingestion/**"
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- 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: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/data-ingestion-task
tags: |
type=raw,value=latest
- name: Build & Push Data Ingestion Task Image
uses: docker/build-push-action@v4
with:
context: .
file: docker/data-ingestion/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
48 changes: 48 additions & 0 deletions .github/workflows/build-and-push-data-preparation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build & Push Data Preparation Task

on:
push:
branches: [ "main" ]
paths:
- "docker/data_preparation/**"
- "src/data_preparation/**"
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- 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: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/data-preparation-task
tags: |
type=raw,value=latest
- name: Build & Push Data Preparation Task Image
uses: docker/build-push-action@v4
with:
context: .
file: docker/data-preparation/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
47 changes: 47 additions & 0 deletions .github/workflows/build-and-push-mlflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build & Push Custom MLFlow

on:
push:
branches: [ "main" ]
paths:
- "docker/mlflow/**"
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- 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: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/custom-mlflow
tags: |
type=raw,value=latest
- name: Build & Push Custom MLFlow Image
uses: docker/build-push-action@v4
with:
context: .
file: docker/mlflow/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
49 changes: 49 additions & 0 deletions .github/workflows/build-and-push-streamlit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build & Push Streamlit

on:
push:
branches: [ "main" ]
paths:
- "docker/streamlit/**"
- "src/ui/**"

workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- 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: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/streamlit-ui
tags: |
type=raw,value=latest
- name: Build & Push Custom Streamlit Image
uses: docker/build-push-action@v4
with:
context: .
file: docker/streamlit/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build & Push Train
name: Build & Push Train Task

on:
push:
branches: [ "main" ]
paths:
- "docker/train/**"
- "src/**"
- "src/train/**"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -35,11 +35,11 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/train
images: ghcr.io/${{ github.repository_owner }}/train-task
tags: |
type=raw,value=latest
- name: Build & Push Train Image
- name: Build & Push Train Task Image
uses: docker/build-push-action@v4
with:
context: .
Expand Down
Loading

0 comments on commit 8ccee5d

Please sign in to comment.