Merge 'actions' branch - update docker container and move to Gitea Actions
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 6m57s

This commit is contained in:
2023-09-14 22:15:27 +02:00
parent e9acb88e5b
commit 1f26ef9daf
3 changed files with 31 additions and 1 deletions

21
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: OSCW Runner Container Build
run-name: ${{ github.actor }} running Gitea Actions
on: [push]
jobs:
OSCW-Runner-Container:
runs-on: oscw
container:
image: codingworkshop/oscw-runner:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build container
env:
OSCW_DOCKERHUB_USERNAME: ${{ secrets.OSCW_DOCKERHUB_USERNAME }}
OSCW_DOCKERHUB_PASSWORD: ${{ secrets.OSCW_DOCKERHUB_PASSWORD }}
run: |
echo "$OSCW_DOCKERHUB_PASSWORD" | docker login -u $OSCW_DOCKERHUB_USERNAME --password-stdin
docker build -t codingworkshop/oscw-runner:latest .
docker push codingworkshop/oscw-runner:latest
docker image prune -af