Skip to content

Commit

Permalink
feat: update pipelines for buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
mdasberg committed Apr 6, 2024
1 parent 7788cf2 commit 30c6881
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,27 @@ jobs:
registry-url: https://registry.npmjs.org
- name: install
run: yarn install --frozen-lockfile
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: package version
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .
- name: Buildx
id: docker_buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_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
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ngapimock/standalone:${{ steps.get-version.outputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: publish
run: yarn semantic-release
env:
Expand Down

0 comments on commit 30c6881

Please sign in to comment.