Files
Docker-Chevereto/.github/workflows/httpd-php.yml
Rodolfo Berrios 0d12e5dd8a wip
2021-06-03 14:14:25 -04:00

40 lines
1.1 KiB
YAML

name: Build and Push httpd-php
on:
workflow_dispatch:
jobs:
build:
name: They took our jobs!
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ secrets.REGISTRY_IMAGE }}
tags: latest ${{ github.sha }}
dockerfiles: |
./httpd-php.Dockerfile
build-args: |
CHEVERETO_LICENSE=${{ secrets.CHEVERETO_LICENSE }}
- name: Log in to container registry
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: ${{ secrets.REGISTRY_LABEL }}
- name: Push to container registry
id: push-to-registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ secrets.REGISTRY_LABEL }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"