From d378927599f3c46fce003302f22815ec65499e08 Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Thu, 28 Nov 2024 09:47:23 +0100 Subject: [PATCH] Update github-actions.yml --- .github/workflows/github-actions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 1a788db5..640f248e 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -95,19 +95,23 @@ jobs: - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 + if: startsWith(github.ref, 'refs/tags/') - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + if: startsWith(github.ref, 'refs/tags/') - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + if: startsWith(github.ref, 'refs/tags/') - name: Build and push uses: docker/build-push-action@v6 with: context: . push: true tags: ocaramba/selenium:latest + if: startsWith(github.ref, 'refs/tags/') - name: Install Docker Compose run: | sudo apt-get update