From 795c7fa09c1d6608873a1d58a5f0462d20765c0e Mon Sep 17 00:00:00 2001 From: Gertjan Krol Date: Fri, 1 Sep 2023 21:07:53 +0000 Subject: [PATCH] Update .forgejo/workflows/test-build.yaml --- .forgejo/workflows/test-build.yaml | 58 +++++++++++++++--------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.forgejo/workflows/test-build.yaml b/.forgejo/workflows/test-build.yaml index 78b9fd8..f75bf0a 100644 --- a/.forgejo/workflows/test-build.yaml +++ b/.forgejo/workflows/test-build.yaml @@ -9,36 +9,36 @@ jobs: runs-on: ubuntu-latest container: docker:latest steps: - - name: Install dependencies # not present in `docker` container - run: apk add --no-cache git nodejs + # - name: Install dependencies # not present in `docker` container + # run: apk add --no-cache git nodejs + # - name: Check out repository + # uses: actions/checkout@v3 + # - name: Build container + # run: | + # export DOCKER_HOST=tcp://docker-in-docker:2375 + # docker build . -t toolkit-test:${{ github.ref_name }} + # - name: Inspect image + # run: docker image inspect toolkit-test:${{ github.ref_name }} + + + + + + + + + # - name: Install dependencies # not present in `docker` container + # run: apk add --no-cache git nodejs - name: Check out repository uses: actions/checkout@v3 - - name: Build container - run: | - export DOCKER_HOST=tcp://docker-in-docker:2375 - docker build . -t toolkit-test:${{ github.ref_name }} + - name: Set Docker host + run: export DOCKER_HOST=tcp://docker-in-docker:2375 + - name: Set up Docker Buildx + uses: actions/docker-setup-buildx@v2 + - name: Build and push + uses: actions/docker-build-push@v4 + with: + push: true + tags: toolkit-test:${{ github.ref_name }} - name: Inspect image run: docker image inspect toolkit-test:${{ github.ref_name }} - - - - - - - - -# # - name: Install dependencies # not present in `docker` container -# # run: apk add --no-cache git nodejs -# - name: Check out repository -# uses: actions/checkout@v3 -# - name: Set up Docker Buildx -# uses: actions/docker-setup-buildx@v2 -# - name: Build and push -# uses: actions/docker-build-push@v4 -# with: -# push: true -# tags: toolkit-test:${{ github.ref_name }} -# # - name: Build container -# # run: docker build . -t toolkit-test:${{ github.ref_name }} -# - name: Inspect image -# run: docker image inspect toolkit-test:${{ github.ref_name }}