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:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
uses: actions/checkout@v2
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
- name: Build and push Docker image
|
with:
|
||||||
uses: docker/build-push-action@v2
|
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:
|
with:
|
||||||
context: .
|
|
||||||
push: true
|
push: true
|
||||||
tags: code.edgarpierre.fr/edpibu/botbotbot:${{ github.ref_name}}
|
tags: edpibu/botbotbot:${{ github.ref_name }}
|
||||||
secrets: |
|
|
||||||
DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}
|
|
||||||
DOCKER_PASSWORD=${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue