Workflow setup
All checks were successful
Push to repository / Push_to_repository (push) Successful in 1m58s
All checks were successful
Push to repository / Push_to_repository (push) Successful in 1m58s
This commit is contained in:
parent
7aa6bc8431
commit
f2625b2ec0
34
.gitea/workflows/deploy.yaml
Normal file
34
.gitea/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Push to repository
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Push_to_repository:
|
||||
runs-on: ubuntu-act-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Docker Build.
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build image.
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
load: true
|
||||
tags: ${{ vars.LATEST_TAG }}
|
||||
|
||||
- name: DockerHub login.
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
- name: Test.
|
||||
run: |
|
||||
docker run --rm ${{ env.LATEST_TAG }} php -v
|
||||
docker run --rm ${{ env.LATEST_TAG }} php -m
|
||||
docker run --rm ${{ env.LATEST_TAG }} composer -v
|
||||
|
||||
- name: Deploy
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ vars.LATEST_TAG }}
|
Loading…
Reference in New Issue
Block a user