Skip to content

rename build-image

rename build-image #2

name: Build-rockylinux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
environment: "build-image"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
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.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push multi-platform Docker image
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x \
--push \
-f Dockerfile-rockylinux \
-t sungyism/tengine:${{ vars.BUILD_VERSION }}-rockylinux \
.