From 2e7b628f8aa17faf068694d97ff187b152759ff3 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 23 Mar 2023 15:44:40 +0000 Subject: [PATCH] test gitea actions --- .gitea/workflows/deploy.yaml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 32da777..7f5a02e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -13,23 +13,22 @@ jobs: # volumes: # - /data:/data steps: - # - uses: actions/checkout@v3 - # with: - # fetch-depth: 0 - # - run: git fetch --force --tags - - name: install docker - run: | - apt-get update - apt-get install -y ca-certificates curl gnupg lsb-release - mkdir -m 0755 -p /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - chmod a+r /etc/apt/keyrings/docker.gpg - apt-get update - apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags - run: hostname - run: pwd - run: ls -la - # - run: apk add --no-cache docker - run: docker ps - # - run: ls -la /data + - run: ls -la /data + + data: + needs: deploy + runs-on: ubuntu-latest + container: + image: alpine:edge + volumes: + - /data:/data + steps: + - run: ls -la /data