Skip to content

Commit

Permalink
adding ghcr container image
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTechCrafts committed Aug 31, 2024
1 parent ad1ff06 commit 7d79f97
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 70 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Dash_GHA_MultiArch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI/CD Build MultiArch

on:
push:
branches:
- main

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

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CICD_TOKEN_TripPlanner }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/jalcocert/py-trip-planner:v2.0
ghcr.io/jalcocert/py-trip-planner:latest
24 changes: 24 additions & 0 deletions .github/workflows/ci-cd-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI/CD Pipeline to DockerHub

on:
workflow_dispatch: #trigger button
# push:
# branches:
# - main

jobs:
build-and-push-x86:
runs-on: ubuntu-latest
steps:
- name: Checkout repository #get the source code
uses: actions/checkout@v2

- name: Set up Docker Buildx #install docker
uses: docker/setup-buildx-action@v1

- uses: actions/checkout@v1
- name: Build & Push Image to DockerHub
run: |
echo "${{ secrets.CICD_DASH_TOKEN_DOCKERHUB }}" | docker login -u "fossengineer" --password-stdin
docker image build -t fossengineer/trip_planner:amd64 .
docker push fossengineer/trip_planner:2-amd64
57 changes: 0 additions & 57 deletions .github/workflows/ci-cd.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.8
LABEL org.opencontainers.image.source=https://github.com/JAlcocerT/Py_Trip_Planner
LABEL org.opencontainers.image.description="Python Trip Planner with Weather"
LABEL org.opencontainers.image.licenses=GPL-3.0
LABEL maintainer="JAlcocerT"

# Copy local code to the container image.
ENV APP_HOME /app
Expand Down
46 changes: 34 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
# Py_Trip_Planner

Using historical weather data together with location data in a DASH App to answer your question: **How is the expected weather at a particular period of the year in my destination?** - Trips Planning with Open Source Tools & Data Analytics.

* Deployed at <https://trip-planner.fossengineer.com>
* [DockerHub - x86,ARM32/64](https://hub.docker.com/repository/docker/fossengineer/trip_planner/general)
<div align="center">
<h1>Python Trip Planner</h1>
</div>

<div align="center">
<h2>Trips Planning with Open Source Tools & Data Analytics.</h2>
</div>

<div align="center">
<a href="https://github.com/JAlcocerT/Py_Trip_Planner?tab=GPL-3.0-1-ov-file" style="margin-right: 5px;">
<img alt="Code License" src="https://img.shields.io/badge/License-GPLv3-blue.svg" />
</a>
<a href="https://github.com/JAlcocerT/JAlcocerT/Py_Trip_Planner/actions/workflows/Dash_GHA_MultiArch.yml" style="margin-right: 5px;">
<img alt="GH Actions Workflow" src="https://github.com/JAlcocerT/Py_Trip_Planner/actions/workflows/Dash_GHA_MultiArch.yml/badge.svg" />
</a>
<a href="https://GitHub.com/JAlcocerT/Py_Trip_Planner/graphs/commit-activity" style="margin-right: 5px;">
<img alt="Mantained" src="https://img.shields.io/badge/Maintained%3F-no-grey.svg" />
</a>
<a href="https://www.python.org/downloads/release/python-3819/">
<img alt="Python Version" src="https://img.shields.io/badge/python-3.8-blue.svg" />
</a>
</div>

Using historical weather data together with location data in a DASH App to answer your question: **How is the expected weather at a particular period of the year in my destination?**

* [Deployed the App](https://github.com/JAlcocerT/Py_Trip_Planner/tree/main/Deploy)
* Further Description at:
* For V1: Historical Weather - <https://fossengineer.com/python-trip-planner/>
* For V2: Historical and Forecast Weather - <https://fossengineer.com/trip-planner-with-weather/>
* For V1: Historical Weather, [MeteoStat](https://jalcocert.github.io/JAlcocerT/python-trip-planner/)
* For V2: Historical and [Forecast Weather](https://jalcocert.github.io/JAlcocerT/python-weather-forecast-with-open-meteo-api/)

## Powered Thanks To
## Powered Thanks To ❤️

* [Dash](https://github.com/plotly/dash)
* [Leaflet](https://github.com/thedirtyfew/dash-leaflet)
* [Meteostat](https://github.com/meteostat)
* [My Guide on Meteostat](https://fossengineer.com/python-historical-weather-api-with-meteostat)
* [Open-Meteo](https://open-meteo.com/)
* [Using Open-Meteo Py](https://fossengineer.com/python-weather-forecast-with-open-meteo-api/)

> [And more...](https://jalcocert.github.io/JAlcocerT/trip-planner-with-weather/)
## Ways to Contribute

Expand All @@ -25,7 +45,9 @@ Using historical weather data together with location data in a DASH App to answe

* Support extra evening code sessions:

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/FossEngineer)
<div align="center">
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Z8Z1QPGUM)
</div>

## :scroll: License

Expand Down

0 comments on commit 7d79f97

Please sign in to comment.