From 4b2e361dee375c9523da866556f6cd2f98398f17 Mon Sep 17 00:00:00 2001 From: Wren Date: Fri, 26 Apr 2024 23:53:06 -0400 Subject: [PATCH 1/2] Create docker-image.yml --- .github/workflows/docker-image.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000..4c4c0ad8c --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + - run: | + docker build --no-cache --platform=linux/amd64 -f Dockerfile -t registry.gitlab.com/vglist/vglist . + docker login registry.gitlab.com -p ${{ secrets.GITLAB_PAT }} + docker push registry.gitlab.com/vglist/vglist From c1e20aee1a5416f352b5aa8856b9d33ab76fe1c7 Mon Sep 17 00:00:00 2001 From: Wren Date: Sat, 27 Apr 2024 00:02:51 -0400 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 4c4c0ad8c..5c63e8434 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,7 +15,10 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build the Docker image - - run: | - docker build --no-cache --platform=linux/amd64 -f Dockerfile -t registry.gitlab.com/vglist/vglist . - docker login registry.gitlab.com -p ${{ secrets.GITLAB_PAT }} - docker push registry.gitlab.com/vglist/vglist + run: docker build --no-cache --platform=linux/amd64 -f Dockerfile -t registry.gitlab.com/vglist/vglist . + + - name: Docker Login + run: docker login registry.gitlab.com -p ${{ secrets.GITLAB_PAT }} + + - name: Push Image + run: docker push registry.gitlab.com/vglist/vglist