Skip to content

Commit

Permalink
Build action
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenedettini committed Sep 20, 2024
1 parent 0ea4028 commit f979424
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Cloudflare Registry
uses: docker/login-action@v1
with:
registry: ${{ vars.CLOUDFLARE_REGISTRY_URL }}
username: ${{ secrets.CLOUDFLARE_REGISTRY_USERNAME }}
password: ${{ secrets.CLOUDFLARE_REGISTRY_PASSWORD }}
- name: Build and push Docker image
env:
REGISTRY_URL: ${{ vars.CLOUDFLARE_REGISTRY_URL }}
run: |
docker build -t $REGISTRY_URL/html2pdf:${{ github.sha }} -t $REGISTRY_URL/html2pdf:latest .
docker push $REGISTRY_URL/html2pdf:${{ github.sha }}
docker push $REGISTRY_URL/html2pdf:latest

0 comments on commit f979424

Please sign in to comment.