Skip to content

Commit

Permalink
Workflow to push image to quay.io (#172)
Browse files Browse the repository at this point in the history
* Added Actions to push image to quay.io

Signed-off-by: lamwassi <[email protected]>

* Search OLM

Signed-off-by: lamwassi <[email protected]>

* Removed Search OLM

Signed-off-by: lamwassi <[email protected]>

* Update workflow

Signed-off-by: lamwassi <[email protected]>

Signed-off-by: lamwassi <[email protected]>
  • Loading branch information
lamwassi authored Nov 10, 2022
1 parent bfe2057 commit 1979669
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/tca-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on:
push:
tags:
- "v*.*.*"

env:
REGISTRY_USER: lam_quay
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}


jobs:
tagged-release:
runs-on: ubuntu-latest
Expand All @@ -28,3 +33,41 @@ jobs:
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.gen_changelog.outputs.changelog }}

publish-release:
needs: tagged-release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: main
- name : get tag
run: echo ${{needs.tagged-release.get_release_tag.outputs.tags}}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cleanup
run: |
bash clean.sh
- name: Setup Containerization Advisor
run: |
bash setup.sh
- name: Log in to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name : build image
run : docker build -t tackle .
- name : tag image
run : docker tag tackle:latest quay.io/konveyor/tackle-container-advisor:${{ github.ref_name }}
- name : push to quay
run : docker push quay.io/konveyor/tackle-container-advisor:${{ github.ref_name }}





0 comments on commit 1979669

Please sign in to comment.