Skip to content

Commit

Permalink
feat: add a job for build a docker image for linux/amd64 and linux/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
nroulon committed May 3, 2024
1 parent 56476d8 commit 62338ab
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ install-aki.py
sample
tests
tox.ini
.github
33 changes: 33 additions & 0 deletions .github/workflows/publish_docker_packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish docker packages on GitHub

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/4sh/aki:latest
ghcr.io/4sh/aki:${{ github.ref_name }}

0 comments on commit 62338ab

Please sign in to comment.