Workflow setup
All checks were successful
Push to repository / Push_to_repository (push) Successful in 1m58s

This commit is contained in:
Chicory ☕ 2024-07-29 20:26:53 +03:00
parent 7aa6bc8431
commit f2625b2ec0
Signed by: chicory
GPG Key ID: AC95A793F70BEDCD

View 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 }}