All checks were successful
Build the Docker Image / docker (push) Successful in 1m47s
33 lines
No EOL
840 B
YAML
33 lines
No EOL
840 B
YAML
name: Build the Docker Image
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
platforms: linux/amd64, linux/arm64
|
|
push: true
|
|
tags: |
|
|
"${{ vars.DOCKER_USERNAME }}/homepage:latest"
|
|
"${{ vars.DOCKER_USERNAME }}/homepage:${{ gitea.sha }}" |