This commit is contained in:
parent
a40f808543
commit
6a4d0985a1
1 changed files with 9 additions and 8 deletions
|
@ -5,29 +5,30 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: alpine
|
||||
runs-on: debian
|
||||
steps:
|
||||
-
|
||||
name: Install dependencies
|
||||
shell: sh
|
||||
name: Install and configure dependencies
|
||||
run: |
|
||||
apk add bash buildah git
|
||||
apt-get install -y --no-install-recommends buildah containers-storage git
|
||||
sed /usr/share/containers/storage.conf \
|
||||
-e '/^#\?mount_program/c\
|
||||
mount_program = "/usr/bin/fuse-overlayfs"' \
|
||||
-e '/^additionalimagestores/a\
|
||||
"/var/lib/shared/"' \
|
||||
> /etc/containers/storage.conf
|
||||
-
|
||||
name: Checkout repository
|
||||
shell: sh
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://runner:${{ secrets.GITHUB_TOKEN }}@$(echo "${{ github.server_url }}" | cut -b 9-)" > ~/.git-credentials
|
||||
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}
|
||||
-
|
||||
name: Authenticate with registry
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ env.REGISTRY }} --username runner --password-stdin
|
||||
-
|
||||
name: Build and push
|
||||
shell: sh
|
||||
run: |
|
||||
id
|
||||
${{ github.workspace }}/builder.sh ${{ env.REGISTRY_IMAGE }}
|
||||
buildah push ${{ env.REGISTRY_IMAGE }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue