Skip to content

integration with conference repo #133

integration with conference repo

integration with conference repo #133

Workflow file for this run

name: hubs-client-ce
on:
push:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USR }}
password: ${{ secrets.DOCKER_HUB_PWD }}
- name: Checkout repository
uses: actions/checkout@v2
with:
path: "./repo"
# - name: Use codePath for multirepo
# if: ${{ inputs.codePath != ''}}
# run: |
# mkdir ./_repo
# cp -rf ./repo/${{ inputs.codePath }}/* ./_repo
# rm -rf ./repo
# mv ./_repo ./repo
# ls ./repo
- name: Docker Buildx setup
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Docker Build and Push
uses: docker/build-push-action@v2
with:
context: repo/
file: repo/RetPageOriginDockerfile
tags: ${{ secrets.DOCKER_HUB_USR }}/${{ github.workflow }}:latest,${{ secrets.DOCKER_HUB_USR }}/${{ github.workflow }}:${{ github.run_number }}
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USR }}/${{ github.workflow }}:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USR }}/${{ github.workflow }}:buildcache,mode=max
push: true