-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 840 Bytes
/
Copy pathpublish.yml
File metadata and controls
32 lines (26 loc) · 840 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
name: publish
on: [push, workflow_dispatch]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish-asterisk-build-asl3-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Asterisk Docker Image
run: |
docker build . --tag ghcr.io/allstarlink/asl3-asterisk-ci:latest
docker run ghcr.io/allstarlink/asl3-asterisk-ci:latest
docker push ghcr.io/allstarlink/asl3-asterisk-ci:latest