From 921880694ef28e88bb6772276bee06fd3c0b53ad Mon Sep 17 00:00:00 2001 From: Uche Madu Date: Sat, 30 Sep 2023 08:54:33 +0100 Subject: [PATCH] update workflow badge --- .github/workflows/retag.yaml | 6 ++---- Dockerfile | 2 +- README.md | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/retag.yaml b/.github/workflows/retag.yaml index 45b24c9..53cad09 100644 --- a/.github/workflows/retag.yaml +++ b/.github/workflows/retag.yaml @@ -1,13 +1,11 @@ name: > - Retag and Push Airflow Image and Update Values File in + Retag Airflow Image and Update Values File in the Infrastructure Repository on: push: branches: - main - types: - - closed paths: # Only run workflow when Dockerfile or requirements.txt is changed - 'Dockerfile' - 'requirements.txt' @@ -93,4 +91,4 @@ jobs: uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - branch: ${{ github.head_ref }} + branch: 'main' diff --git a/Dockerfile b/Dockerfile index 02a2caf..94602a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/local/airflow COPY requirements.txt . -# Install dbt into a virtual environment to use the ExternalPythonOperator +# Install dbt into a virtual environment for use in ExternalPythonOperator # The sed command allows pip to avoid running with --user flag RUN python -m venv dbt_venv && \ sed -i 's/include-system-site-packages = false/include-system-site-packages = true/' dbt_venv/pyvenv.cfg && \ diff --git a/README.md b/README.md index ff00c48..87c5a0e 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ ***This is one of two repositories with code for the entire DEB Project. While this repository focuses on the application code such as Airflow DAGs, the [DEB Infrastructure repository](https://github.com/uche-madu/deb-infrastructure) focuses on provisioning cloud resources. This separation of concerns via separate repositories aims to follow GitOps Principles.*** ## CI/CD Workflow -The `build.yml` Github Actions workflow builds a custom airflow image and pushes it to Google Artifact Registry. It then checks out the [DEB Infrastructure repository](https://github.com/uche-madu/deb-infrastructure) to update the `airflow-helm/values-dev.yaml` file with the new image and tag. For this to work, create a repository-scoped `Personal Access Token` for your Github account and store it as a secret in this repository. Visit [Github Docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) for details about creating tokens. \ No newline at end of file +The `build-push.yaml` Github Actions workflow builds a custom airflow image and pushes it to Google Artifact Registry. It then checks out the [DEB Infrastructure repository](https://github.com/uche-madu/deb-infrastructure) to update the `airflow-helm/values-dev.yaml` file with the new image and tag. For this to work, create a repository-scoped `Personal Access Token` for your Github account and store it as a secret in this repository. Visit [Github Docs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) for details about creating tokens. \ No newline at end of file