Skip to content

Commit

Permalink
Update GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingfeng committed Dec 11, 2023
1 parent 8e19024 commit 0702f90
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/2-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,24 @@ jobs:
name: build docker images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish to docker hub
uses: elgohr/Publish-Docker-Github-Action@v4
- name: Checkout
uses: actions/checkout@v4

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DH_TOKEN }}

- name: Build and Push thn-api
uses: docker/build-push-action@v5
with:
name: xuqingfeng/brb
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ github.repository_owner }}/brb:latest

0 comments on commit 0702f90

Please sign in to comment.