diff --git a/.github/workflows/dev-env.yml b/.github/workflows/dev-env.yml new file mode 100644 index 0000000..9a6a6c8 --- /dev/null +++ b/.github/workflows/dev-env.yml @@ -0,0 +1,31 @@ +name: Development environment workflow + +on: + push: + branches: [ "main" ] + paths: ["Dockerfile"] + +jobs: + publish-image: + needs: ci + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: | + ghcr.io/vncsmyrnk/rust-17.9-slim-dev:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a605a45 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:22.04 +SHELL ["/bin/bash", "-c"] +RUN <> /etc/sudoers +EOF +USER dev +RUN <