renamed workflow and removed build step

This commit is contained in:
2025-05-28 16:52:39 +02:00
parent 50cb9d570d
commit b344e82b2e

View File

@@ -0,0 +1,22 @@
name: Push Docker Image to container registry
on:
push:
branches:
- 'main'
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: Push Docker image
run: |
docker push ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest