Skip to content

Instantly share code, notes, and snippets.

@qdm12
Last active May 14, 2020 01:42
Show Gist options
  • Select an option

  • Save qdm12/dfaf83b51377e165b1ceabf0410422e5 to your computer and use it in GitHub Desktop.

Select an option

Save qdm12/dfaf83b51377e165b1ceabf0410422e5 to your computer and use it in GitHub Desktop.

Revisions

  1. qdm12 revised this gist May 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion buildx-release.yml
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,6 @@ jobs:
    docker buildx build \
    --progress plain \
    --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/s390x \
    -t bee/yourimagename:latest \
    -t bee/yourimagename:${GITHUB_REF##*/} \
    --push \
    .
  2. qdm12 created this gist May 14, 2020.
    25 changes: 25 additions & 0 deletions buildx-release.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@

    name: Buildx release
    on:
    release:
    types: [published]
    paths-ignore:
    - .github/workflows/buildx-latest.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 \
    .