Kubernetes-config-deployment/.gitea/workflows/docker_build.yaml
Matthew Fisher b9b445cd03
Some checks failed
ci / docker (push) Failing after 0s
Update .gitea/workflows/docker_build.yaml
2024-10-16 08:13:44 -05:00

29 lines
860 B
YAML

name: ci
on:
push:
branches: [ main ]
jobs:
docker:
steps:
#-
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: SeptBlast/docker-login@v1.1.2
with:
login-server: harbor.fisherhome.xyz
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- uses: actions/checkout@v3
- name: Build and push
run: |
docker login --username ${{ secrets.HARBOR_USERNAME }} --password ${{ secrets.HARBOR_PASSWORD }} harbor.fisherhome.xyz
docker build --no-cache ./ -t harbor.fisherhome.xyz/library/apache-config:latest
docker push harbor.fisherhome.xyz/library/apache-config:latest