From 5ca3b8c56f8ab76c94bc70080ac67781d9ff84dc Mon Sep 17 00:00:00 2001 From: Voop Date: Wed, 20 Mar 2024 21:49:07 +0200 Subject: [PATCH] Adding Github actions --- .gitlab/workflows/docker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab/workflows/docker.yml diff --git a/.gitlab/workflows/docker.yml b/.gitlab/workflows/docker.yml new file mode 100644 index 0000000..23dd129 --- /dev/null +++ b/.gitlab/workflows/docker.yml @@ -0,0 +1,30 @@ +name: Build and Deploy + +on: + push: + branches: main + +jobs: + container: + name: Build and Push container + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - name: Repo Checkout + uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Build Container + run: | + chmod -R 755 build.sh + sh build.sh + - name: Deploy to Docker Hub + run: | + docker push vooplv/webcontainer:core + docker push vooplv/webcontainer:nginx + docker push vooplv/webcontainer:openresty \ No newline at end of file