Skip to content

Kubernetes Cluster Upgrade from 1.26 to 1.27 (#166) #111

Kubernetes Cluster Upgrade from 1.26 to 1.27 (#166)

Kubernetes Cluster Upgrade from 1.26 to 1.27 (#166) #111

Workflow file for this run

# This workflow is setup to build and publish aladdin to Dockerhub
name: Push to Docker Hub
on:
push:
branches:
- 'main'
tags:
- '*.*.*'
- '*.*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
# QEMU is needed to support multi-platform builds
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# this will select the right tags depending on the Github event
# master branch will build the "latest" and "master" Dockerhub tags
# git tags will build the Dockerhub tag matching the git tag
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: fivestarsos/aladdin
tags: |
type=ref,event=branch
type=ref,event=tag
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
# these creds are setup in the repository secrets
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true # push to Dockerhub
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}