Skip to content

no entrypiont or cmd #169

no entrypiont or cmd

no entrypiont or cmd #169

Workflow file for this run

name: Create and publish a Docker image
on: push
env:
REGISTRY: ghcr.io
API_IMAGE: quanted/wb-api
REDIS_IMAGE: quanted/wb-redis
LOCALSTACK_IMAGE: quanted/wb-localstack
jobs:
build-api:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.API_IMAGE }}
tags: |
type=raw,value=${{github.ref_name}}-${{github.sha}}
- name: Build and push cyan-waterbody API image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# build-api-mamba:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
#
# - name: Log in to the Container registry
# uses: docker/login-action@v1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: ${{ env.REGISTRY }}/${{ env.API_IMAGE }}
# tags: |
# type=raw,value=${{github.ref_name}}-mamba-${{github.sha}}
# - name: Build and push cyan-waterbody API image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Dockerfile_Mamba
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# build-flask:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Log in to the Container registry
# uses: docker/login-action@v1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: ${{ env.REGISTRY }}/${{ env.FLASK_IMAGE }}
# tags: |
# type=raw,value=${{github.ref_name}}-${{github.sha}}
# - name: Build and push cyan-waterbody flask image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Dockerfile
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# build-celery:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Log in to the Container registry
# uses: docker/login-action@v1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: ${{ env.REGISTRY }}/${{ env.CELERY_IMAGE }}
# tags: |
# type=raw,value=${{github.ref_name}}-${{github.sha}}
# - name: Build and push cyan-waterbody celery image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Dockerfile
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
build-redis:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.REDIS_IMAGE }}
tags: |
type=raw,value=${{github.ref_name}}
- name: Build and push cyan-waterbody redis image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile_Redis
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-localstack:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.LOCALSTACK_IMAGE }}
tags: |
type=raw,value=${{github.ref_name}}
- name: Build and push cyan-waterbody localstack image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile_localstack
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}