feat(Pipeline): added
All checks were successful
Build the Docker Image / docker (push) Successful in 1m47s
All checks were successful
Build the Docker Image / docker (push) Successful in 1m47s
This commit is contained in:
parent
08366ec055
commit
ab3d098752
1 changed files with 33 additions and 0 deletions
33
.forgejo/workflows/docker-image.yaml
Normal file
33
.forgejo/workflows/docker-image.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue