Skip to content

Build and push image #32

Build and push image

Build and push image #32

Workflow file for this run

name: Build and push image
on:
workflow_dispatch:
inputs:
version:
description: "Semantic version to be built"
required: true
type: string
jobs:
push_to_registries:
name: Push Docker image to Dockerhub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build and push Docker images
uses: docker/build-push-action@94d76d3bc1409736cb5dc1ada9502bec3a72973c
with:
context: .
push: true
tags: ghcr.io/coveooss/aws_auth_eks_crd:${{ github.event.inputs.version }}
labels: ${{ github.event.inputs.version }}