Skip to content

Init

Init #1

Workflow file for this run

name: Image Build
on:
push:
env:
REGISTRY: quay.io
REGISTRY_NAMESPACE: supiedt
jobs:
code-action:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to Registry Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWD }}
- name: Get Meta
id: meta
run: |
echo IMAGE_NAME=$(cat ./ImageName) | tee -a $GITHUB_OUTPUT
echo IMAGE_VERSION=$(cat ./Version) | tee -a $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./${{ steps.meta.outputs.IMAGE_NAME }}/Dockerfile
platforms: |
linux/amd64
linux/arm64/v8
push: true
pull: true
no-cache: true
tags: |
${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/${{ steps.meta.outputs.IMAGE_NAME }}:${{ steps.meta.outputs.IMAGE_VERSION }}