Skip to content

Commit

Permalink
Add support to airflow 2.5.1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
micael-grilo authored Jul 19, 2023
1 parent 162788a commit 188e5d8
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create and publish a Docker image

on:
push:
tags:
- 'v*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.10

RUN pip install apache-airflow==2.4.3
RUN pip install apache-airflow==2.5.1
ADD entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Validate and test DAGs, before deploying to production by creating an isolated Airflow on Docker Container with supplied variables and dependencies.

Currently supports Airflow [v2.0.2](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.0.2) and [v2.2.2](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.2.2) and [v2.4.3](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.4.3).
Currently supports Airflow [v2.0.2](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.0.2), [v2.2.2](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.2.2), [v2.4.3](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.4.3) and [v2.5.1](https://github.com/micael-grilo/airflow-dags-test-action/releases/tag/v2.5.1)

![Main CI/CD Pipeline](https://github.com/micael-grilo/airflow-dags-test-action/workflows/Main%20CI/CD%20Pipeline/badge.svg)

Expand All @@ -21,7 +21,7 @@ Place in a `.yml` file such as this one in your `.github/workflows` folder. [Ref

```yml
- name: 'Test Airflow DAGs'
uses: micael-grilo/airflow-dags-test-action@v2.4.3
uses: micael-grilo/airflow-dags-test-action@v2.5.1
with:
requirements-file: project/requirements.txt
dags-path: project/dags
Expand Down
2 changes: 1 addition & 1 deletion project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest==7.2.2
pytest==7.4.0

0 comments on commit 188e5d8

Please sign in to comment.