Skip to content

Push Interaction Platform Docker Image #186

Push Interaction Platform Docker Image

Push Interaction Platform Docker Image #186

name: "Push Interaction Platform Docker Image"
concurrency:
group: "interaction-platform"
cancel-in-progress: true
env:
TITLE: "52°North AquaInfra Interaction Platform Image"
VENDOR: "52°North GmbH"
AUTHORS: "https://52North.org/"
DESCRIPTION: "Builds and publishes Interaction Platform image for the AquaInfra project"
LICENSE: "GPL-3.0"
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_and_push_geonode:
runs-on: ubuntu-22.04
env:
IMAGE: 52north/aquainfra-interactionplatform
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE }}
labels: |
"org.opencontainers.image.authors=${{ env.AUTHORS }}"
"org.opencontainers.image.vendor=${{ env.VENDOR }}"
"org.opencontainers.image.description=${{ env.DESCRIPTION }}"
"org.opencontainers.image.title=${{ env.TITLE }}"
"org.opencontainers.image.licenses=${{ env.LICENSE }}"
tags: |
latest
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max