From 86b0096803fe85139ca39c35f71af3e2c740aa79 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Mon, 20 Feb 2023 15:58:24 +0000 Subject: [PATCH] Create docker-images.yml Creating the packages for the goqa --- .gitub/workflows/docker-images.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitub/workflows/docker-images.yml diff --git a/.gitub/workflows/docker-images.yml b/.gitub/workflows/docker-images.yml new file mode 100644 index 0000000..6f46d7b --- /dev/null +++ b/.gitub/workflows/docker-images.yml @@ -0,0 +1,33 @@ +name: Docker Image CI + +on: + push: + branches: ['master'] + pull_request: + branches: ['master'] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2.1.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Login to docker.01-edu.org Registry + uses: docker/login-action@v1 + with: + registry: docker.01-edu.org + username: ${{ secrets.USER_DOCKER_01EDU_ORG }} + password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }} + + - name: Build the Go tests Docker image + run: | + docker build . --file Dockerfile --tag ghcr.io/01-edu/test-goqa:latest + docker push ghcr.io/01-edu/test-goqa:latest