diff --git a/.github/workflows/docker_images.yaml b/.github/workflows/docker_images.yaml new file mode 100644 index 0000000..e3bada3 --- /dev/null +++ b/.github/workflows/docker_images.yaml @@ -0,0 +1,28 @@ +name: Docker + +on: + push: + branches: ["main"] + +jobs: + images: + name: Images + runs-on: ubuntu-latest + steps: + - name: Set docker chmod (temp solution) + run: sudo chmod 666 /var/run/docker.sock + + - name: Docker - Login + uses: docker/login-action@v1 + with: + registry: git.hashdot.co + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + file: ./docker/images/build/Dockerfile + push: true + tags: git.hashdot.co/lars/pipelines/bun:latest \ No newline at end of file diff --git a/docker/images/build/Dockerfile b/docker/images/build/Dockerfile new file mode 100644 index 0000000..49f431d --- /dev/null +++ b/docker/images/build/Dockerfile @@ -0,0 +1,3 @@ +FROM oven/bun:alpine + +RUN apk add --no-cache git curl \ No newline at end of file