[WIP] arm #38
Workflow file for this run
This file contains hidden or 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: build | |
| 'on': | |
| schedule: | |
| - | |
| cron: '0 0 * * 2' | |
| push: null | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: null | |
| jobs: | |
| toolbox_latest: | |
| name: 'webdevops/toolbox:latest' | |
| runs-on: ubuntu-latest | |
| container: webdevops/dockerfile-build-env | |
| steps: | |
| # - | |
| # run: apt update && apt install sudo | |
| - | |
| uses: actions/checkout@v4 | |
| # - | |
| # uses: docker/setup-docker-action@v4 | |
| # with: | |
| # daemon-config: '{"features": {"containerd-snapshotter": true}}' | |
| - | |
| uses: docker/setup-qemu-action@v3 | |
| - | |
| name: 'Build x64 & ARM' | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: docker/toolbox/latest | |
| tags: 'ghcr.io/webdevops/toolbox:latest,webdevops/toolbox:latest' | |
| platforms: linux/amd64,linux/arm64 | |
| - | |
| run: |- | |
| docker image inspect --platform linux/amd64 webdevops/toolbox:latest | |
| docker image inspect --platform linux/arm64 webdevops/toolbox:latest | |
| - | |
| # if: "${{github.ref == 'refs/heads/master'}}" | |
| name: 'Login to ghcr.io' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: '${{ github.actor }}' | |
| password: '${{ secrets.GITHUB_TOKEN }}' | |
| - | |
| # if: "${{github.ref == 'refs/heads/master'}}" | |
| name: 'Login to hub.docker.com' | |
| uses: docker/login-action@v3 | |
| with: | |
| username: '${{ secrets.DOCKERHUB_USERNAME }}' | |
| password: '${{ secrets.DOCKERHUB_TOKEN }}' | |
| - | |
| # if: "${{github.ref == 'refs/heads/master'}}" | |
| name: Push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: docker/toolbox/latest | |
| push: true | |
| tags: 'ghcr.io/webdevops/toolbox:latest,webdevops/toolbox:latest' | |
| platforms: linux/amd64,linux/arm64 |