Skip to content

New versions of Charon and exchanges #58

New versions of Charon and exchanges

New versions of Charon and exchanges #58

name: Docker Build & Publish
on:
push:
branches:
- 'main'
permissions:
packages: write
env:
REGISTRY: ghcr.io
IMAGE_BASE_NAME: haspamelodica/charon
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
-
name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: "Build and push: base"
uses: docker/build-push-action@v2
with:
file: base.Dockerfile
tags: ghcr.io/${{ env.IMAGE_BASE_NAME }}:base
push: true
-
name: "Build and push: student"
uses: docker/build-push-action@v2
with:
file: student.Dockerfile
tags: ghcr.io/${{ env.IMAGE_BASE_NAME }}:student
push: true
-
name: "Build and push: exercise-maven"
uses: docker/build-push-action@v2
with:
file: exercise-maven.Dockerfile
tags: ghcr.io/${{ env.IMAGE_BASE_NAME }}:exercise-maven
push: true
-
name: "Build and push: exercise-gradle"
uses: docker/build-push-action@v2
with:
file: exercise-gradle.Dockerfile
tags: ghcr.io/${{ env.IMAGE_BASE_NAME }}:exercise-gradle
push: true