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 4560245 commit 7a7ef7c
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 780 deletions.
20 changes: 0 additions & 20 deletions .github/CODEOWNERS

This file was deleted.

82 changes: 0 additions & 82 deletions .github/ISSUE_TEMPLATE/1-bug_report.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE/2-feature_request.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

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

This file was deleted.

74 changes: 0 additions & 74 deletions .github/renovate.json5

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/check-md-link-config.json

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/check-md-link.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"
Loading

0 comments on commit 7a7ef7c

Please sign in to comment.