name: on-push on: [push] jobs: infra/misc/docker: runs-on: linux container: bitnami/node:latest steps: - name: Clone repository uses: actions/checkout@v3 - name: Install Docker run: apt-get -y update && apt-get -y install docker.io - name: Login run: echo ${{ secrets.INFRA_ACCESS_TOKEN }} | docker login -u ${{ gitea.actor }} --password-stdin code.helloryan.se - name: Build run: docker 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 }} docker --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