From 1d070ad39f30cb74630ac818b85d1e85500945af Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Tue, 14 May 2024 01:07:31 +0200 Subject: [PATCH] aaaa --- .github/workflows/build-push.yml | 6 +++--- .github/workflows/demopush.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index 78767f9..3f1a66a 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -3,7 +3,7 @@ name: Create and publish a Docker image # Configures this workflow to run every time a change is pushed to the branch called `release`. on: push: - branches: ['main', 'dev'] + branches: ['dev'] # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: @@ -43,11 +43,11 @@ jobs: # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - name: Build and push Docker image id: push - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action@v5 with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} + tags: ghcr.io/notherealmarco/slaacsense:dev # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)." - name: Generate artifact attestation diff --git a/.github/workflows/demopush.yml b/.github/workflows/demopush.yml index 843b3bd..5a1f417 100644 --- a/.github/workflows/demopush.yml +++ b/.github/workflows/demopush.yml @@ -8,12 +8,13 @@ name: Demo Push on: push: branches: - - dev + - disabled # tags: # - v* # pull_request: # This creates an environment variable called `IMAGE_NAME ` with the value `ghtoken_product_demo`. env: + REGISTRY: ghcr.io IMAGE_NAME: slaacsense # jobs: @@ -35,11 +36,10 @@ jobs: - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - # + - name: Push image run: | IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME - # This changes all uppercase characters to lowercase. IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') # This strips the git ref prefix from the version.