Import Gitea actions workflow
This commit is contained in:
parent
e9acb88e5b
commit
1c512d12bc
20
.github/workflows/build.yml
vendored
Normal file
20
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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_PASWORD | docker login -u $OSCW_DOCKERHUB_USERNAME --password-stdin
|
||||
run: docker build -t codingworkshop/oscw-runner:latest .
|
||||
run: docker push codingworkshop/oscw-runner:latest
|
||||
run: docker image prune -af
|
Loading…
Reference in New Issue
Block a user