Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: added GitHub action script to build Alpine docker #3420

Closed
wants to merge 30 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@ jobs:
cd `pwd`/pkg/docker/alpine
./hooks/pre_build || true

- name: test
run: |
#git submodule init
#git submodule update
#tar cz -C ./pkg/docker/alpine -f kamailio_img.tar.gz Dockerfile
#tar cz -f pkg/docker/alpine/kamailio_img.tar.gz pkg/docker/alpine/Dockerfile
pwd
find pkg/docker/alpine
#cp -R pkg/docker/alpine/* .
#/usr/bin/docker buildx build .
#/usr/bin/docker buildx build --file Dockerfile .
/usr/bin/docker buildx build --file Dockerfile ./pkg/docker/alpine || true
cp -R pkg/docker/alpine/* .
/usr/bin/docker buildx build --file Dockerfile.alpine . || true
cd pkg/docker/alpine
/usr/bin/docker buildx build --file Dockerfile.alpine . || true


- name: Build and push minimal
uses: docker/build-push-action@v4
with:
context: pkg/docker/alpine
file: Dockerfile
push: false
tags: master

- name: Build image archives and apk files
run: |
cd `pwd`/pkg/docker/alpine
Expand All @@ -45,6 +71,8 @@ jobs:
type=pep440,pattern={{major}}.{{minor}}
type=pep440,pattern={{major}}
type=ref,event=branch
flavor: |
suffix=

- name: Docker meta alpine
id: meta-alpine
Expand Down Expand Up @@ -98,7 +126,7 @@ jobs:
- name: Build and push with apk
uses: docker/build-push-action@v4
with:
context: pkg/docker/alpine
context: ./pkg/docker/alpine
file: Dockerfile.alpine
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-alpine.outputs.tags }}
Expand All @@ -107,7 +135,7 @@ jobs:
- name: Build and push with debug
uses: docker/build-push-action@v4
with:
context: pkg/docker/alpine
context: ./pkg/docker/alpine
file: Dockerfile.debug
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-debug.outputs.tags }}
Expand Down