packages/.github/workflows/build.yaml
Ettore Di Giacinto 319af35922 ⚙️ First import
2022-02-23 22:52:50 +01:00

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