Skip to content

Commit ed0ae0a

Browse files
committed
WIP - add build_images workflow
1 parent 97a543a commit ed0ae0a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/build_images.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Build & push devcontainer"
2+
3+
on:
4+
push:
5+
paths:
6+
- .devcontainer/**
7+
- .github/workflows/build_images.yml
8+
9+
permissions:
10+
contents: read
11+
packages: write # Required for GHCR
12+
13+
jobs:
14+
build-and-push:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out current commit
18+
uses: actions/checkout@v4
19+
20+
- name: Build and devcontainer build image
21+
uses: getsentry/action-build-and-push-images@main
22+
with:
23+
ghcr_image_name: 'sentry-ruby-devcontainer-build'
24+
dockerfile_path: '.devcontainer/Dockerfile'
25+
ghcr: true
26+
27+
- name: Use outputs
28+
run: |
29+
echo "GHCR URL: ${{ steps.build.outputs.ghcr_image_url }}"

0 commit comments

Comments
 (0)