Skip to content

Build and push image #31

Build and push image

Build and push image #31

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@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Login to GitHub Container Registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build and push Docker images
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ghcr.io/coveooss/aws_auth_eks_crd:${{ github.event.inputs.version }}
labels: ${{ github.event.inputs.version }}