This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
3.2.12 #136
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Merge master | |
on: | |
pull_request: | |
types: [closed] | |
concurrency: | |
group: ${{ github.ref }}.merge | |
cancel-in-progress: true | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
DOCKER_DEFAULT_PLATFORM: linux/amd64 | |
jobs: | |
pr-merged: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
security-events: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Environment Variables | |
uses: ./.github/actions/setvars | |
with: | |
varFilePath: ./.github/variables/vars.env | |
- uses: jpribyl/action-docker-layer-caching@v0.1.0 | |
continue-on-error: true | |
with: | |
key: image-build-${{ env.TAG }}-{hash} | |
restore-keys: | | |
image-build-${{ env.TAG }}- | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build image | |
run: ./hooks/build | |
- name: Log in to Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: itsthejb | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- name: Tag image | |
run: docker tag itsthejb/ispconfig:latest itsthejb/ispconfig:${{ env.TAG }} | |
- name: Push image | |
run: docker push itsthejb/ispconfig:${{ env.TAG }} | |
delete-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete merged branch | |
continue-on-error: true | |
uses: SvanBoxel/delete-merged-branch@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |