Skip to content

Commit

Permalink
Correcting action for build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantiffany committed Jun 5, 2024
1 parent c1dc8f2 commit c9c1b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-push-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
- push
env:
GITHUB_SHA: ${{ github.sha }}
REGISTRY_URL: us.icr.io
IMAGE_NAME: dts-ce-py-app
REGISTRY_NAMESPACE: rtiffany

jobs:
build-push-update:
Expand All @@ -26,15 +23,15 @@ jobs:
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.REGISTRY_NAMESPACE }}/${{ env.IMAGE_NAME }}
image: ${{ vars.REGISTRY_NAMESPACE }}/${{ vars.REGISTRY_IMAGE }}
tags: latest ${{ env.SHORT_SHA }}
containerfiles: |
./Dockerfile
- name: Log in to the IBM Cloud Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.REGISTRY_URL }}
registry: ${{ vars.REGISTRY_ENDPOINT }}
username: iamapikey
password: ${{ secrets.REGISTRY_PASSWORD }}

Expand All @@ -44,7 +41,7 @@ jobs:
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.REGISTRY_URL }}
registry: ${{ vars.REGISTRY_ENDPOINT }}

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-icr.outputs.registry-paths }}"
29 changes: 0 additions & 29 deletions .github/workflows/test-output.yaml

This file was deleted.

0 comments on commit c9c1b3e

Please sign in to comment.