Skip to content

Commit

Permalink
Merge pull request #4 from coveooss/CLOUDINFRA-3927-fix
Browse files Browse the repository at this point in the history
Add Github action to push to ghcr.io
  • Loading branch information
maxpoirier authored Mar 23, 2023
2 parents 59892a0 + 34f6378 commit cb2b861
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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 GHCR
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Login to 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/acm_checker:${{ github.event.inputs.version }}
labels: ${{ github.event.inputs.version }}

0 comments on commit cb2b861

Please sign in to comment.