Skip to content

Commit

Permalink
chore: ran cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 14, 2024
1 parent e576837 commit 1a2ec44
Show file tree
Hide file tree
Showing 9 changed files with 360 additions and 360 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/dockerx_alpine.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Build and Push Alpine Images
on:
push:
branches-ignore:
- none
paths:
- "alpine/**"
- "alpine_dev/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "alpine/Dockerfile", context: "alpine", image_name: "alpine" }
- { dockerfile: "alpine_dev/Dockerfile", context: "alpine_dev", image_name: "alpine_dev" }
runs-on: self-hosted
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
echo "tag=latest" >> $GITHUB_OUTPUT
else
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: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
name: Build and Push Alpine Images
on:
push:
branches-ignore:
- none
paths:
- "alpine/**"
- "alpine_dev/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "alpine/Dockerfile", context: "alpine", image_name: "alpine" }
- { dockerfile: "alpine_dev/Dockerfile", context: "alpine_dev", image_name: "alpine_dev" }
runs-on: self-hosted
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
echo "tag=latest" >> $GITHUB_OUTPUT
else
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: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
96 changes: 48 additions & 48 deletions .github/workflows/dockerx_deno.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Build and Push Deno Images
on:
push:
branches-ignore:
- none
paths:
- "deno/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "deno/Dockerfile", context: "deno", image_name: "deno", tag_name: "latest" }
- { dockerfile: "deno/Dockerfile.ubuntu", context: "deno", image_name: "deno", tag_name: "ubuntu" }
- { dockerfile: "deno/Dockerfile.ubuntu_dev", context: "deno", image_name: "deno", tag_name: "ubuntu_dev" }
runs-on: self-hosted
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
echo "tag=${{ matrix.config.tag_name }}" >> $GITHUB_OUTPUT
else
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=${{ matrix.config.tag_name }}-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
name: Build and Push Deno Images
on:
push:
branches-ignore:
- none
paths:
- "deno/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "deno/Dockerfile", context: "deno", image_name: "deno", tag_name: "latest" }
- { dockerfile: "deno/Dockerfile.ubuntu", context: "deno", image_name: "deno", tag_name: "ubuntu" }
- { dockerfile: "deno/Dockerfile.ubuntu_dev", context: "deno", image_name: "deno", tag_name: "ubuntu_dev" }
runs-on: self-hosted
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
echo "tag=${{ matrix.config.tag_name }}" >> $GITHUB_OUTPUT
else
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=${{ matrix.config.tag_name }}-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
92 changes: 46 additions & 46 deletions .github/workflows/dockerx_nomad.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Build and Push Nomad Images
on:
push:
branches-ignore:
- none
paths:
- "nomad-server/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "nomad-server/Dockerfile", context: "nomad-server", image_name: "nomad-server", tag_name: "latest" }
runs-on: self-hosted
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
echo "tag=${{ matrix.config.tag_name }}" >> $GITHUB_OUTPUT
else
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=${{ matrix.config.tag_name }}-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
name: Build and Push Nomad Images
on:
push:
branches-ignore:
- none
paths:
- "nomad-server/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
config:
- { dockerfile: "nomad-server/Dockerfile", context: "nomad-server", image_name: "nomad-server", tag_name: "latest" }
runs-on: self-hosted
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
echo "tag=${{ matrix.config.tag_name }}" >> $GITHUB_OUTPUT
else
GITHUB_REFNAME=${{ github.ref_name }}
BRANCH_NAME=${GITHUB_REFNAME//\//_}
echo "tag=${{ matrix.config.tag_name }}-$BRANCH_NAME" >> $GITHUB_OUTPUT
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
file: ${{ matrix.config.dockerfile }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: hivesolutions/${{ matrix.config.image_name }}:${{ steps.set_tag.outputs.tag }}
82 changes: 41 additions & 41 deletions .github/workflows/dockerx_python.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: Build and Push Python Images
on:
push:
branches-ignore:
- none
paths:
- "python/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 20
runs-on: self-hosted
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
echo "tag=latest" >> $GITHUB_OUTPUT
else
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: python
file: ./python/Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
push: true
tags: hivesolutions/python:${{ steps.set_tag.outputs.tag }}
name: Build and Push Python Images
on:
push:
branches-ignore:
- none
paths:
- "python/**"
workflow_dispatch:
jobs:
build:
name: Build
timeout-minutes: 20
runs-on: self-hosted
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
echo "tag=latest" >> $GITHUB_OUTPUT
else
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: python
file: ./python/Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
push: true
tags: hivesolutions/python:${{ steps.set_tag.outputs.tag }}
Loading

0 comments on commit 1a2ec44

Please sign in to comment.