fix: build workflows and migrate base to oses

Fix bot image workflow build and migrate base images to oses since it appears we already have such folder - although badly named (why not base?).
This commit is contained in:
Softwarenoob
2021-08-06 23:20:24 +03:00
parent ba43d5ab59
commit 36f90183e2
9 changed files with 38 additions and 102 deletions

View File

@@ -1,4 +1,4 @@
name: build base
name: build oses
on:
schedule:
- cron: "0 0 * * 1"
@@ -6,15 +6,16 @@ on:
branches:
- master
paths:
- base/**
- oses/**
jobs:
push:
name: "yolks:base_${{ matrix.tag }}"
name: "yolks_os:${{ matrix.oses }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
oses:
- alpine
- debian
- ubuntu
steps:
@@ -30,9 +31,9 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: ./base/${{ matrix.tag }}
file: ./base/${{ matrix.tag }}/Dockerfile
context: ./oses/${{ matrix.oses }}
file: ./oses/${{ matrix.oses }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/parkervcp/yolks:base_${{ matrix.tag }}
ghcr.io/parkervcp/yolks_os:${{ matrix.oses }}

View File

@@ -32,7 +32,7 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: ./bot
context: ./bot/${{ matrix.tag }}
file: ./bot/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: true