Testing 123

This commit is contained in:
2025-04-07 21:04:40 +02:00
parent fa5f6b2588
commit 4b08dc4cea

View File

@@ -0,0 +1,27 @@
name: Build and Push Docker Image
on:
push:
branches:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log into Gitea Container Registry
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Docker image
run: |
docker pull hello-world
docker tag hello-world git.silklaasboer.nl/hello-world:latest
- name: Push Docker image
run: |
docker push ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/hello-world:latest