Skip to content

sn1ce is BUILDING Base and Complete Images 🚀 #180

sn1ce is BUILDING Base and Complete Images 🚀

sn1ce is BUILDING Base and Complete Images 🚀 #180

Workflow file for this run

name: Build Images
run-name: ${{ github.actor }} is BUILDING Base and Complete Images 🚀
on:
push:
branches:
- master
jobs:
Clean-Repo:
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get current date
run: echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Fetch origin
run: git fetch origin
- name: Checkout master
run: git checkout master
- name: Delete local branches
run: git checkout -b "tmp" || true && git checkout master && git for-each-ref --format '%(refname:short)' refs/heads | grep -v "master\|main" | xargs git branch -D
- name: Pull origin
run: git pull origin master
Build-Images:
timeout-minutes: 180
needs: Clean-Repo
runs-on: [self-hosted, Linux, X64]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
id: qemu
uses: docker/[email protected]
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Build Images
run: bash ./build.sh