Docker Image Magepack #650
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image Magepack | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 6 * * *" # 6 AM Daily | |
push: | |
paths: | |
- magepack/** | |
- .github/workflows/magepack.yml | |
jobs: | |
magepack: | |
name: Magepack | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "2.3" | |
- "2.4" | |
- "2.5" | |
- "2.6" | |
- "2.7" | |
- "2.8" | |
- "2.9" | |
- "2.10" | |
- "2.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-qemu-action@v2 | |
- uses: docker/setup-buildx-action@v2 | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ !env.ACT }} | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
if: ${{ !env.ACT }} | |
- uses: docker/build-push-action@v3 | |
with: | |
context: magepack | |
platforms: linux/amd64,linux/arm64 | |
build-args: MAGEPACK_VERSION=${{ matrix.version }} | |
push: ${{ github.ref == 'refs/heads/main' && !env.ACT }} | |
tags: ghcr.io/${{ github.repository_owner }}/magepack:${{ matrix.version }}, wardenenv/magepack:${{ matrix.version }} |