Skip to content

Commit

Permalink
Merge pull request #160 from L0RD-ZER0/feature/build
Browse files Browse the repository at this point in the history
Add github action to build for ARM and x86
  • Loading branch information
L0RD-ZER0 authored Mar 11, 2024
2 parents b24d75f + b71958f commit afbb398
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
push:
tags:
- '*'

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install docker emulation
run: docker run --rm --privileged tonistiigi/binfmt:latest --install amd64,arm64
- name: Set up buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push
run: |
docker buildx build --platform linux/amd64,linux/arm64 -t $(echo 'ghcr.io/${{ github.repository }}/slack-notify:${{ github.ref_name }}' | tr '[:upper:]' '[:lower:]') --push .

0 comments on commit afbb398

Please sign in to comment.