commit 393bb41d7afce7842fe793b8937c8ad2dcf15422 Author: Workspaces <> Date: Sat May 16 13:15:27 2026 +0000 Initial commit diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..2eb4619 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build and Push Docker Image + +on: + push: + branches: [main] + +permissions: + packages: write + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: quay.io/buildah/stable + options: --security-opt seccomp=unconfined --security-opt apparmor=unconfined --device /dev/fuse:rw --privileged + + env: + BUILDAH_ISOLATION: chroot + STORAGE_DRIVER: vfs + + steps: + - name: Install Node.js + run: dnf install -y nodejs git + + - uses: actions/checkout@v4 + + - name: Login to Registry + run: buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} git.kocoder.xyz + + - name: Buildah Build + run: | + buildah build -t ${{ github.sha }} . + buildah tag ${{ github.sha }} latest + + - name: Push Docker Images + run: | + buildah push ${{ github.sha }} docker://${{ gitea.repositoryUrl }}:${{ github.sha }} + buildah push latest docker://${{ gitea.repositoryUrl }}:${{ github.sha }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e9c9f4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM codercom/enterprise-base:ubuntu + +RUN echo "Hello World" \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9225435 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Base Image +This image is used as a base image for the development environment. \ No newline at end of file