feat: remove insecure & unnecessary workflow.
This commit is contained in:
parent
e51cae1614
commit
da448012dd
1 changed files with 0 additions and 38 deletions
38
.github/workflows/pr-docker-build.yml
vendored
38
.github/workflows/pr-docker-build.yml
vendored
|
|
@ -1,38 +0,0 @@
|
|||
name: Build and Publish PR Docker Image
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize]
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment:
|
||||
name: build-pr
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ github.token }}
|
||||
|
||||
- name: Set image tag
|
||||
id: vars
|
||||
run: echo "IMAGE_TAG=ghcr.io/gitroomhq/postiz-app-pr:${{ github.event.pull_request.number }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Docker image from Dockerfile.dev
|
||||
run: docker build -f Dockerfile.dev -t $IMAGE_TAG .
|
||||
|
||||
- name: Push Docker image to GHCR
|
||||
run: docker push $IMAGE_TAG
|
||||
Loading…
Add table
Reference in a new issue