Skip to content

delta

delta #79

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- james/init
workflow_dispatch:
branches:
- main
permissions: read-all
jobs:
push_to_registry:
name: Push Docker Image to Docker Hub
runs-on: ubuntu-latest
environment: dev3
outputs:
image_digest: ${{ steps.build.outputs.digest }}
steps:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Log in to Docker Hub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
id: build
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: ./Dockerfile
push: true
tags: jamesomesh/airflow:3.0.2
deploy_to_dev3:
name: Deploy to dev 3
uses: ./.github/workflows/helm-deploy.yaml
needs: push_to_registry
with:
environment: dev3
image_digest: ${{ needs.push_to_registry.outputs.image_digest }}
secrets: inherit
# if: github.ref == 'refs/heads/main'
# deploy_to_prod1:
# name: Deploy to prod 1
# needs: [ push_to_registry, deploy_to_dev3 ]
# uses: ./.github/workflows/helm-deploy.yaml
# with:
# environment: prod1
# image_digest: ${{ needs.push_to_registry.outputs.image_digest }}
# secrets: inherit
# if: github.ref == 'refs/heads/main'