Skip to content

v1.0.0

v1.0.0 #8

Workflow file for this run

---
name: Container Release
on:
release:
types: [published]
jobs:
container_release:
name: Build docker images and publish to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Git tag
id: vars
run: echo "release-version=${GITHUB_REF#refs/*/v}" >> $GITHUB_OUTPUT
- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.release-version }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.release-version }}
- name: Build kraken-app-controller container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-controller/Dockerfile
push: true
tags: |
cloudnexusopsdockerhub/kraken-app-controller:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-controller:latest
- name: Build kraken-app-hub container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-hub/Dockerfile
push: true
tags: |
cloudnexusopsdockerhub/kraken-app-hub:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-hub:latest
- name: Build kraken-app-agent container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-agent/Dockerfile
push: true
tags: |
cloudnexusopsdockerhub/kraken-app-agent:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-agent:latest
- name: Build kraken-app-portal container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-portal/Dockerfile
push: true
tags: |
cloudnexusopsdockerhub/kraken-app-portal:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-portal:latest