Skip to content

Build and publish forecast ETL docker images #13

Build and publish forecast ETL docker images

Build and publish forecast ETL docker images #13

name: Build and publish forecast ETL docker images
on:
[workflow_dispatch]
jobs:
publish_image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: lowercase the repository name
run: |
echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
- name: login
run: |
echo ${{ secrets.GITHUB_TOKEN}} | docker login --username ${{ github.actor }} --password-stdin ghcr.io
- name: build
run: |
cd air-quality-backend
docker build . -t ghcr.io/${REPO}/vairify-etl-forecast:latest -f Dockerfile.forecast
- name: publish
run: |
docker push ghcr.io/${REPO}/vairify-etl-forecast:latest