Skip to content

Feature/1204578025047310 try runtime integration (#149) #132

Feature/1204578025047310 try runtime integration (#149)

Feature/1204578025047310 try runtime integration (#149) #132

name: Build and Publish
on:
push:
branches:
- 'parachain_dev'
tags:
- 'peaq-dev-local-v*' # For the peaq-dev's env in the parchain-launch usage
- 'krest-local-v*' # For the krest env in the parchain-launch usage
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-22.04
steps:
- name: Diskspace
run: |
sudo df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo df -h
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ secrets.DOCKER_REG_PARACHAIN}}
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: scripts/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}