Build and publish forecast ETL docker images #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |