chore(deps): update go updates #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: container | |
on: | |
push: | |
branches: ['main'] | |
tags: ['v*'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build-and-push: | |
name: Build and conditionally push image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Image | |
id: build-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: wasp-agent | |
tags: latest ${{ github.sha }} | |
containerfiles: | | |
./Containerfile.wasp | |
- name: Push To quay.io | |
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }} | |
id: push-to-quay | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-image.outputs.image }} | |
tags: ${{ steps.build-image.outputs.tags }} | |
registry: quay.io/openshift-virtualization | |
username: openshift-virtualization+wasp_agent_gh_workflow | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Print image url | |
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }} | |
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" |