Skip to content

add workflows

add workflows #1

name: Build and Publish Docker Container and Pypanda Docs # Only for main panda-re repo, not forks
on:
push:
branches:
- main
jobs:
build_release_assets:
if: github.repository == 'panda-re/qemu' && github.ref == 'refs/heads/dev'
runs-on: panda-arc
steps:
- name: Install git
run: sudo apt-get -qq update -y && sudo apt-get -qq install git curl jq -y
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
release_branch: dev
use_api: true
- name: 'Login to Docker Registry'
uses: docker/login-action@v3
with:
username: pandare
password: ${{secrets.pandare_dockerhub}}
- name: Build panda:latest
uses: docker/build-push-action@v5
with:
push: true
context: ${{ github.workspace }}
tags: |
pandare/panda-ng:${{ github.sha }}
pandare/panda-ng:${{ steps.version.outputs.v-version }}
pandare/panda-ng:latest