From faf1e71fe4c637bf60f88b537afe4533441511f6 Mon Sep 17 00:00:00 2001 From: Denis Mazur Date: Sat, 17 Feb 2024 20:24:53 +0300 Subject: [PATCH 1/3] try bumping buld-push-action version --- .github/workflows/push-docker-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-docker-image.yaml b/.github/workflows/push-docker-image.yaml index 345b8f201..a924e5863 100644 --- a/.github/workflows/push-docker-image.yaml +++ b/.github/workflows/push-docker-image.yaml @@ -44,7 +44,7 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . push: ${{ github.event_name != 'pull_request' }} From f96be6736440a916714771558e2add2cdedb7869 Mon Sep 17 00:00:00 2001 From: justheuristic Date: Mon, 19 Feb 2024 21:11:53 +0300 Subject: [PATCH 2/3] Create push-docker-test2.yaml --- .github/workflows/push-docker-test2.yaml | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/push-docker-test2.yaml diff --git a/.github/workflows/push-docker-test2.yaml b/.github/workflows/push-docker-test2.yaml new file mode 100644 index 000000000..17837a035 --- /dev/null +++ b/.github/workflows/push-docker-test2.yaml @@ -0,0 +1,54 @@ +name: Another Push to Docker Hub + +on: + push: + branches: [ main ] + tags: + - "*.*.*" + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Docker meta + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + # list of Docker images to use as base name for tags + images: | + learningathome/petals + # generate Docker tags based on the following events/attributes + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + + - name: Set up Docker Buildx + id: buildxx + uses: docker/setup-buildx-action@v1 + + - name: Login to Docker Hub + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push + id: docker_buildd + uses: docker/build-push-action@v5 + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} From 6626f8ecc2665f4f68f70f409e85471571a1d6a1 Mon Sep 17 00:00:00 2001 From: justheuristic Date: Wed, 28 Feb 2024 14:32:07 +0300 Subject: [PATCH 3/3] Update push-docker-test2.yaml --- .github/workflows/push-docker-test2.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/push-docker-test2.yaml b/.github/workflows/push-docker-test2.yaml index 17837a035..0207e0c9a 100644 --- a/.github/workflows/push-docker-test2.yaml +++ b/.github/workflows/push-docker-test2.yaml @@ -42,6 +42,18 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Free disk space on Ubuntu runner + uses: kfir4444/free-disk-space@main + with: + # frees about 6 GB, warning: may remove required tools + tool-cache: false + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + - name: Build and push id: docker_buildd uses: docker/build-push-action@v5