Skip to content

Commit

Permalink
GitHub action to build and push TL500 image (#202)
Browse files Browse the repository at this point in the history
* Add an GH action to build and publish TL500 Tech Exercise image on Release

* Simply GH action
  • Loading branch information
jfilipcz authored Aug 3, 2022
1 parent d3733f0 commit a84ba6b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs-release-and-build-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and publish tl500-tech-exercise image

on:
release:
types: [published]


jobs:
build-and-push:
env:
context: docs
image_name: tl500-tech-exercise
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Build image
id: build_image
uses: redhat-actions/[email protected]
with:
context: ${{ env.context }}
dockerfiles: |
./${{ env.context }}/Containerfile
image: ${{ env.image_name }}
tags: "${{ github.ref_name }}"
- name: Push to Quay
id: push_to_quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_image.outputs.image }}
registry: ${{ secrets.REGISTRY_URI }}/${{ secrets.REGISTRY_REPOSITORY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
tags: ${{ steps.build_image.outputs.tags }}

0 comments on commit a84ba6b

Please sign in to comment.