Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Bioblaze committed Dec 8, 2024
1 parent 3c357b7 commit 66a3387
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,45 @@ on:


jobs:
base:
name: Building ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: Ubuntu Base Dockerfile
file: ./cicd/ubuntu/base.Dockerfile
tag: base
context: cicd/ubuntu/
env:
APP_NAME_BASE: "blazium" # Define a global base app name
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
file: ${{ matrix.file }}
context: ${{ matrix.context }}
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME_BASE }}-${{ matrix.tag }}:latest

docker:
name: Building ${{ matrix.name }}
needs: base
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 66a3387

Please sign in to comment.