Skip to content

Commit

Permalink
fix registry auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvs committed Sep 19, 2023
1 parent 21b0e88 commit c7f2d0d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: Latest image

on:
push:
Expand All @@ -13,6 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:

tags:
- '*'

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
docker build . --tag ghcr.io/lucasvs/docker-asterisk:${{ github.ref_name }}
docker push ghcr.io/lucasvs/docker-asterisk:${{ github.ref_name }}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ Dockerfile to build [Asterisk](https://github.com/asterisk/asterisk) 18.19.0 wit
```yml
FROM ghcr.io/lucasvs/docker-asterisk:18.19.0-v1

# copy default configuration files from asterisk github repository
COPY --from=daemon-builder /go/bin/daemon /usr/bin/
COPY entrypoint.sh scripts/* /usr/bin/
# Copy default configuration files from asterisk github repository
COPY internal/conf/* /etc/asterisk/
COPY internal/contrib/ /usr/share/asterisk/contrib/
COPY internal/odbc/* /etc/
Expand Down

0 comments on commit c7f2d0d

Please sign in to comment.