Skip to content

Standardize on pyenv for all ubuntu images, add 22.04 image #132

Standardize on pyenv for all ubuntu images, add 22.04 image

Standardize on pyenv for all ubuntu images, add 22.04 image #132

Workflow file for this run

name: Build Centos 7 Image
on:
push:
branches:
- main
paths:
- 'centos7/*'
- '.github/workflows/build-centos7.yml'
pull_request:
workflow_dispatch:
schedule:
- cron: '30 12 * * 5'
concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PAT }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
chianetwork/centos7-builder
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=sha,format=long
- name: Build Docker Container
uses: docker/build-push-action@v4
with:
context: ./centos7
push: true
tags: ${{ steps.meta.outputs.tags }}