ci: simplify to use manual comands
This commit is contained in:
@@ -29,13 +29,10 @@ jobs:
|
|||||||
username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
|
username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
|
||||||
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
|
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Build container image
|
||||||
uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
|
docker build . -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Push container image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
||||||
provenance: false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user