This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
samos123 triggered Docker pipeline π #296
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker pipeline | |
run-name: ${{ github.actor }} triggered Docker pipeline π | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
jobs: | |
docker-pipeline: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: "${{ secrets.DOCKERHUB_USERNAME }}" | |
password: "${{ secrets.DOCKERHUB_TOKEN }}" | |
- name: Docker meta | |
id: meta-controller-manager | |
uses: docker/metadata-action@v4 | |
with: | |
images: substratusai/controller-manager | |
- name: Build and push | |
id: build-and-push-controller-manager | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
platforms: "linux/amd64" | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta-controller-manager.outputs.tags }} | |
labels: ${{ steps.meta-controller-manager.outputs.labels }} | |
- name: Docker meta | |
id: meta-gcp-manager | |
uses: docker/metadata-action@v4 | |
with: | |
images: substratusai/gcp-manager | |
- name: Build and push | |
id: build-and-push-gcp-manager | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile.gcpmanager | |
platforms: "linux/amd64" | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta-gcp-manager.outputs.tags }} | |
labels: ${{ steps.meta-gcp-manager.outputs.labels }} | |
- name: Docker meta | |
id: meta-installer | |
uses: docker/metadata-action@v4 | |
with: | |
images: substratusai/installer | |
- name: Build and push | |
id: build-and-push-installer | |
uses: docker/build-push-action@v4 | |
with: | |
context: install/ | |
platforms: "linux/amd64" | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta-installer.outputs.tags }} | |
labels: ${{ steps.meta-installer.outputs.labels }} |