Test New WF
This commit is contained in:
@@ -2,10 +2,10 @@ name: Docker Build and Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
# push:
|
||||||
branches: [ "main" ]
|
# branches: [ "main" ]
|
||||||
paths-ignore:
|
# paths-ignore:
|
||||||
- '**/README.md'
|
# - '**/README.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker-build-and-publish:
|
docker-build-and-publish:
|
||||||
|
|||||||
32
.gitea/workflows/test.yaml
Normal file
32
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Docker Build and Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker-build-and-publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: install buildx
|
||||||
|
id: buildx
|
||||||
|
uses: crazy-max/ghaction-docker-buildx@v1
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
|
||||||
|
- name: build the image
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--tag ${{ vars.DOCKERHUB_REPO }}:2.10.0 \
|
||||||
|
--tag ${{ vars.DOCKERHUB_REPO }}:latest \
|
||||||
|
--platform linux/amd64,linux/arm64 .
|
||||||
Reference in New Issue
Block a user