First attempt
Some checks failed
on-push / infra/misc/docker (push) Failing after 12s

This commit is contained in:
RYAN 2024-05-26 09:29:14 +02:00
commit 6973890ec8
Signed by: RYAN
GPG Key ID: 3BD93EABD1407B82
2 changed files with 21 additions and 0 deletions

View 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
View File

@ -0,0 +1 @@
FROM docker:latest