mirror of
https://github.com/kairos-io/packages.git
synced 2025-04-28 03:11:12 +00:00
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Build
|
|
concurrency:
|
|
group: "master-build"
|
|
#cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ARCH: amd64
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: |
|
|
git fetch --prune --unshallow
|
|
mkdir build
|
|
- name: Download meta 🔧
|
|
uses: luet-lab/luet-github-action@master
|
|
with:
|
|
FINAL_REPO: quay.io/c3os/packages
|
|
REPOSITORY_TYPE: docker
|
|
downloadAllMeta: true
|
|
downloadFromList: true
|
|
downloadMeta: true
|
|
- name: Build packages 🔧
|
|
uses: luet-lab/luet-github-action@master
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
with:
|
|
build: true
|
|
fromIndex: true
|
|
onlyMissing: true
|
|
FINAL_REPO: quay.io/c3os/packages
|
|
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
DOCKER_ENDPOINT: quay.io
|
|
REPOSITORY_TYPE: docker
|
|
pushFinalImages: true
|
|
pushCache: true
|
|
- name: Create repo 🔧
|
|
uses: luet-lab/luet-github-action@master
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
with:
|
|
FINAL_REPO: quay.io/c3os/packages
|
|
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
DOCKER_ENDPOINT: quay.io
|
|
REPOSITORY_TYPE: docker
|
|
createRepo: true
|
|
pushCache: true
|