feat: Add conda to base image #12
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: Ansible image | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/ansible.yml | |
- images/ansible/** | |
workflow_call: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ansible | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
# - name: Setup cosign | |
# uses: sigstore/cosign-installer@v3.3.0 | |
- name: Login to container registry | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build image | |
uses: redhat-actions/buildah-build@v2 | |
id: build | |
with: | |
image: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }} | |
tags: 39 latest | |
containerfiles: images/ansible/Containerfile | |
context: images/ansible | |
oci: true | |
- name: Push image | |
uses: redhat-actions/push-to-registry@v2 | |
id: push | |
with: | |
image: ${{ steps.build.outputs.image }} | |
tags: ${{ steps.build.outputs.tags }} | |
registry: ${{ env.REGISTRY }} | |
# - name: Sign image | |
# run: cosign sign -y --recursive --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }} | |
# env: | |
# COSIGN_EXPERIMENTAL: false | |
# COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
# COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} |