Skip to content

Commit

Permalink
Add push to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
groovytron committed Nov 10, 2024
1 parent 4c26402 commit f61aabf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
id: date
run: echo "::set-output name=date::$(date -u +'%Y-%m-%dT%H:%m:%SZ')"
- name: Buildah Action
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: docker.io/groovytron/python
Expand All @@ -30,3 +31,15 @@ jobs:
--user dev \
docker.io/groovytron/python:3.12 \
bash ./test.sh
- name: Push To docker.io
id: push-to-dockerio
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: docker.io/groovytron
username: groovytron
password: ${{ secrets.REGISTRY_TOKEN }}

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"

0 comments on commit f61aabf

Please sign in to comment.