diff --git a/.dockerignore b/.dockerignore index 466fcba..7e525d3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,3 +12,4 @@ install-aki.py sample tests tox.ini +.github diff --git a/.github/workflows/publish_docker_packages.yaml b/.github/workflows/publish_docker_packages.yaml new file mode 100644 index 0000000..54f6714 --- /dev/null +++ b/.github/workflows/publish_docker_packages.yaml @@ -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 }}