pipeline runner
Some checks failed
Image builder / build (push) Failing after 18s

This commit is contained in:
Tanguy Herbron 2023-08-07 10:38:16 +02:00
parent 1c70131de9
commit ea28fecab3
2 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,8 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Start shell build
run: ./build.sh
- name: Generate tag - name: Generate tag
id: tag_vars id: tag_vars
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
@ -25,8 +27,6 @@ jobs:
- name: Build and push - name: Build and push
uses: https://github.com/docker/build-push-action@v1 uses: https://github.com/docker/build-push-action@v1
with: with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
push: true push: true
file: images/debian/Dockerfile.12.1-node18 file: images/debian/Dockerfile.12.1-node18
tags: git.halis.io/athens-school/runner-images:debian12.1-node18 tags: git.halis.io/athens-school/runner-images:debian12.1-node18

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
echo $GITHUB_TOKEN | docker login git.halis.io -u therbron
docker pull ubuntu:latest
docker tag ubuntu:latest git.halis.io/athens-school/runner-images:shell-build
docker push git.halis.io/athens-school/runner-images:shell-build