Skip to content

Build and push image #29

Build and push image

Build and push image #29

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@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@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 }}