Non Base try #81
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: build | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
env: | |
CACERT_CONTENT: ${{ secrets.CA_CERT }} | |
CACERT: custom-ca.crt | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Login to quay.io | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Prepare docker build metadata | |
id: metadata | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
quay.io/rh_integration/selenium-standalone-chrome | |
flavor: | | |
latest=true | |
tags: | | |
type=sha | |
- name: Echo CaCert content to file | |
run: echo "$CACERT_CONTENT" > $CACERT | |
- name: Build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
build-args: customca=${{ env.CACERT }} | |
tags: ${{ steps.metadata.outputs.tags }} | |
labels: ${{ steps.metadata.outputs.labels }} | |
push: true |