Skip to content

[full-ci][tests-only] Bump latest commit id of ocis master #4007

[full-ci][tests-only] Bump latest commit id of ocis master

[full-ci][tests-only] Bump latest commit id of ocis master #4007

Workflow file for this run

name: Build Docker
on:
push:
branches:
- "edge"
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
docker:
runs-on: self-hosted
strategy:
matrix:
include:
- tag: reva:${{ ((github.ref_type == 'tag') && github.ref_name) || 'edge' }}
file: Dockerfile.reva
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'edge' }}
file: Dockerfile.revad
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'edge' }}-eos
file: Dockerfile.revad-eos
- tag: revad:${{ ((github.ref_type == 'tag') && github.ref_name) || 'edge' }}-ceph
file: Dockerfile.revad-ceph
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ${{ ((github.event_name != 'pull_request') && 'and push') || '' }} ${{ matrix.tag }}
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
file: ${{ matrix.file }}
tags: ${{ ((github.event_name != 'pull_request') && format('{0}/{1}', vars.DOCKERHUB_ORGANIZATION, matrix.tag)) || '' }}