Run docker commands directly
Build website container / Build image (push) Failing after 6s Details

This commit is contained in:
LordMathis 2023-11-25 16:46:09 +01:00
parent 9ef3e44252
commit 05d70945d3
1 changed files with 3 additions and 9 deletions

View File

@ -15,8 +15,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
@ -24,11 +22,7 @@ jobs:
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
Mathis/namesny-com:latest
Mathis/namesny-com:${{ gitea.sha }}
run: |
docker build -t ${REGISTRY}/${{ gitea.actor }}${IMAGE_NAME}:${{ gitea.sha }} -t ${REGISTRY}/${{ gitea.actor }}${IMAGE_NAME}:latest .
docker push