-
-
Notifications
You must be signed in to change notification settings - Fork 201
42 lines (34 loc) · 956 Bytes
/
docker.yml
File metadata and controls
42 lines (34 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Docker
on:
push:
branches:
- master
paths:
- '.github/docker/**'
workflow_dispatch:
jobs:
alpine:
name: Build alpine:${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- '3.21'
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/sentry-native-alpine:${{ matrix.version }}
steps:
- uses: actions/checkout@v6
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ env.IMAGE_NAME }}
run: docker build --build-arg BASE=alpine:${{ matrix.version }} -t ${{ env.IMAGE_NAME }} .
working-directory: .github/docker/alpine
- name: Push ${{ env.IMAGE_NAME }}
run: docker push ${{ env.IMAGE_NAME }}