This commit is contained in:
commit
6973890ec8
20
.gitea/workflows/on-push.yaml
Normal file
20
.gitea/workflows/on-push.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: on-push
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
infra/misc/docker:
|
||||||
|
runs-on: linux
|
||||||
|
container: docker:latest
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Login
|
||||||
|
run: echo ${{ secrets.INFRA_ACCESS_TOKEN }} | docker login -u ${{ gitea.actor }} --password-stdin code.helloryan.se
|
||||||
|
- name: Build
|
||||||
|
run: docker buildx build -t code.helloryan.se/infra/misc/docker:${{ gitea.sha }} docker
|
||||||
|
- name: Test
|
||||||
|
run: docker run --rm code.helloryan.se/infra/misc/docker:${{ gitea.sha }} g++ --version
|
||||||
|
- name: Tag
|
||||||
|
run: docker tag code.helloryan.se/infra/misc/docker:${{ gitea.sha }} code.helloryan.se/infra/misc/docker:latest
|
||||||
|
- name: Push
|
||||||
|
run: docker push code.helloryan.se/infra/misc/docker:latest
|
1
docker/Dockerfile
Normal file
1
docker/Dockerfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
FROM docker:latest
|
Loading…
Reference in New Issue
Block a user