Skip to content

Commit

Permalink
internal: improve build-vcpkg-deps.yml (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Oct 18, 2024
1 parent 448049f commit 5c95f4a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build-vcpkg-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: Build & Push Vcpkg Deps (Docker)

on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'vcpkg'
- 'Dockerfile'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive' # ensures submodules are checked out

Expand Down Expand Up @@ -78,3 +84,16 @@ jobs:
VCPKG_COMMIT=${{ env.VCPKG_COMMIT }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Replace image tags in files
run: |
sed -i "s|skymp/skymp-runtime-base:[^ ]*|skymp/skymp-runtime-base:${{ env.SHORT_SHA }}|g" misc/deploy/remote/branchctl.sh
sed -i "s|skymp/skymp-vcpkg-deps:[^ ]*|skymp/skymp-vcpkg-deps:${{ env.SHORT_SHA }}|g" misc/github_env_linux
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "internal: update skymp-runtime-base and skymp-vcpkg-deps to ${{ env.SHORT_SHA }}"
title: "internal: update skymp-runtime-base and skymp-vcpkg-deps to ${{ env.SHORT_SHA }}"
body: Bot put here this release PR, enjoy...
branch: "internal-update-images-${{ env.SHORT_SHA }}"

0 comments on commit 5c95f4a

Please sign in to comment.