From b610517ab70587d7fa328b5d5cea790f3d557f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Thu, 14 Mar 2024 05:41:45 +0000 Subject: [PATCH] chore: new EOL values --- .github/workflows/dockerx.yml | 78 +++++++++++++++++------------------ README.md | 1 - 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/.github/workflows/dockerx.yml b/.github/workflows/dockerx.yml index 90914a0..061b3b6 100644 --- a/.github/workflows/dockerx.yml +++ b/.github/workflows/dockerx.yml @@ -1,39 +1,39 @@ -name: Build and Push Headless Images -on: - schedule: - - cron: 0 1 * * * - push: - branches-ignore: - - none - workflow_dispatch: null -jobs: - build: - name: Build - timeout-minutes: 60 - runs-on: linux - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: '${{ secrets.DOCKERHUB_USERNAME }}' - password: '${{ secrets.DOCKERHUB_TOKEN }}' - - name: Set tag name based on branch - id: set_tag - run: | - if [[ "${{ github.ref_name }}" != "master" ]]; then - GITHUB_REFNAME=${{ github.ref_name }} - BRANCH_NAME=${GITHUB_REFNAME//\//_} - echo "tag=-$BRANCH_NAME" >> $GITHUB_OUTPUT - fi - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile.chromium - platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 - push: true - tags: hivesolutions/headless:chromium${{ steps.set_tag.outputs.tag }} +name: Build and Push Headless Images +on: + schedule: + - cron: 0 1 * * * + push: + branches-ignore: + - none + workflow_dispatch: null +jobs: + build: + name: Build + timeout-minutes: 60 + runs-on: linux + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: '${{ secrets.DOCKERHUB_USERNAME }}' + password: '${{ secrets.DOCKERHUB_TOKEN }}' + - name: Set tag name based on branch + id: set_tag + run: | + if [[ "${{ github.ref_name }}" != "master" ]]; then + GITHUB_REFNAME=${{ github.ref_name }} + BRANCH_NAME=${GITHUB_REFNAME//\//_} + echo "tag=-$BRANCH_NAME" >> $GITHUB_OUTPUT + fi + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.chromium + platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 + push: true + tags: hivesolutions/headless:chromium${{ steps.set_tag.outputs.tag }} diff --git a/README.md b/README.md index 480cd4d..c1c0e6b 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,3 @@ Headless is currently licensed under the [Apache License, Version 2.0](http://ww [![Build Status GitHub](https://github.com/hivesolutions/headless/workflows/Main%20Workflow/badge.svg)](https://github.com/hivesolutions/headless/actions) [![npm Status](https://img.shields.io/npm/v/hive-headless.svg)](https://www.npmjs.com/package/hive-headless) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/) -