Update GitHub Actions workflow to enhance Docker image build and push process
Some checks failed
/ build (push) Failing after 1m57s
Some checks failed
/ build (push) Failing after 1m57s
This commit is contained in:
parent
55452f7b9f
commit
34dcf82624
1 changed files with 14 additions and 10 deletions
|
@ -3,15 +3,19 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.edgarpierre.fr
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: code.edgarpierre.fr/edpibu/botbotbot:${{ github.ref_name}}
|
||||
secrets: |
|
||||
DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }}
|
||||
tags: edpibu/botbotbot:${{ github.ref_name }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue