Updated the build script for DDS #380
Workflow file for this run
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: Deploy Baseimage | |
# Will only run on modifications in the docker directory, to prevent a rebuild of the base image on every change. | |
# We also only build on develop, so that the latest base image is always valid. If you want to verify with n snapshot image, please push one | |
# to your local registry and build from there. | |
on: | |
pull_request: | |
paths: | |
- docker/** | |
workflow_dispatch: | |
env: | |
IMAGE_NAME: fiware/orion-ld-base | |
IMAGE_TAG: latest | |
jobs: | |
deploy-quay: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Image | |
id: build-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }} | |
tags: ${{ env.IMAGE_TAG }} | |
dockerfiles: | | |
./docker/Dockerfile-ubi-base | |
- name: Push To quay.io | |
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 | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
deploy-dockerhub: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} | |
file: docker/Dockerfile-ubi-base |