Created
May 14, 2020 01:34
-
-
Save qdm12/797aaa1994a5e76cb29f016a5dab1997 to your computer and use it in GitHub Desktop.
Buildx Latest with Github Actions
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: Buildx latest | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- .github/workflows/buildx-release.yml | |
- README.md | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Buildx setup | |
uses: crazy-max/ghaction-docker-buildx@v1 | |
- name: Dockerhub login | |
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u bee --password-stdin 2>&1 | |
- name: Run Buildx | |
run: | | |
docker buildx build \ | |
--progress plain \ | |
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/s390x \ | |
-t bee/yourimagename:latest \ | |
--push \ | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment