Skip to content

Commit

Permalink
Pre-Release Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mchadwick-iqt authored Jun 20, 2024
1 parent 85f9603 commit 821c18c
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 131 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Code Quality Checks
on: [push, pull_request]

on: [pull_request_target]

jobs:
build:
runs-on: ubuntu-latest
name: Code Quality Checks
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v4
with:
python-version: 3.9.13
- run: pip install --upgrade pip
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Container Processing

on:
push:
branches: [ "main" ]

jobs:
push_to_registry:
name: Push Docker image to DockerHub
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest

- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Set DOCKER_FOLDER
run: echo "DOCKER_FOLDER=$(echo ${{ github.event.repository.name }} | sed 's/edgetech-//')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ${{ env.DOCKER_FOLDER }}
platforms: linux/arm64,linux/amd64
push: true
tags: ${{ vars.DOCKER_NAMESPACE }}/${{ github.event.repository.name }}:latest
32 changes: 32 additions & 0 deletions .github/workflows/docker-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Build Testing

on: [pull_request_target]



jobs:
push_to_registry:
name: Test Docker Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest

- name: Set DOCKER_FOLDER
run: echo "DOCKER_FOLDER=$(echo ${{ github.event.repository.name }} | sed 's/edgetech-//')" >> $GITHUB_ENV

- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ${{ env.DOCKER_FOLDER }}
platforms: linux/arm64,linux/amd64
push: false
tags: ${{ vars.DOCKER_NAMESPACE }}/${{ github.event.repository.name }}:testing-PR${{ github.event.pull_request.number }}
64 changes: 0 additions & 64 deletions .github/workflows/dockerbuild.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release Tagging

on:
release:
types: [ "published" ]

jobs:
push_to_registry:
name: Dockerhub Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest

- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Set DOCKER_FOLDER
run: echo "DOCKER_FOLDER=$(echo ${{ github.event.repository.name }} | sed 's/edgetech-//')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ${{ env.DOCKER_FOLDER }}
platforms: linux/arm64,linux/amd64
push: true
tags: |
${{ vars.DOCKER_NAMESPACE }}/${{ github.event.repository.name }}:${{ github.event.release.name }}
${{ vars.DOCKER_NAMESPACE }}/${{ github.event.repository.name }}:stable
${{ vars.DOCKER_NAMESPACE }}/${{ github.event.repository.name }}:latest
55 changes: 0 additions & 55 deletions .github/workflows/releasetag.yml

This file was deleted.

10 changes: 0 additions & 10 deletions renovate.json

This file was deleted.

0 comments on commit 821c18c

Please sign in to comment.