Skip to content

Commit

Permalink
Simple build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed Nov 21, 2024
1 parent d02929b commit 889ac91
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 784 deletions.
40 changes: 0 additions & 40 deletions .github/CODEOWNERS

This file was deleted.

29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/pull_request_template.md

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/auto-assign-issues.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Push Docker Container

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

env:
IMAGE_VERSION: $(date +'%Y%m%d_%H%M%S')_${{ github.sha }}_${{ github.run_number }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin

- name: Build and push multi-platform Docker image
run: |
# Build and tag the Docker image with the version
docker buildx create --use
docker buildx build --push \
--tag ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ env.IMAGE_VERSION }} \
--platform linux/amd64,linux/arm64 .
env:
DOCKER_CLI_ACI_AS_TEXT: "true"
55 changes: 0 additions & 55 deletions .github/workflows/docker-build.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/docs-generate.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/lint-check.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/publish-swagger-docs.yml

This file was deleted.

Loading

0 comments on commit 889ac91

Please sign in to comment.