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