Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Update Docker Compose configuration for Flask app and Redis service #7

Update Docker Compose configuration for Flask app and Redis service

Update Docker Compose configuration for Flask app and Redis service #7

name: Build and Publish Docker Image
on:
push:
branches:
- main
jobs:
build-cacher:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: nmcc1212
password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/cacher/Dockerfile
push: true
tags: ghcr.io/nmcc1212/cacher:latest
build-next-app:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: nmcc1212
password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/next-app/Dockerfile
push: true
tags: ghcr.io/nmcc1212/next-app:latest
build-rss-to-json:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: nmcc1212
password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/rss-to-json/Dockerfile
push: true
tags: ghcr.io/nmcc1212/rss-to-json:latest