diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index c1a9a56..9591b22 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 needs: test + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout @@ -20,20 +22,6 @@ jobs: - name: Update repository run: apt update - - name: Install docker - run: | - apt-get update - apt-get install ca-certificates curl gnupg - install -m 0755 -d /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg - chmod a+r /etc/apt/keyrings/docker.gpg - echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ - tee /etc/apt/sources.list.d/docker.list > /dev/null - apt-get update - apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - - name: test docker run: docker login @@ -41,8 +29,8 @@ jobs: uses: docker/login-action@v2 with: registry: git.1159.cl - username: ${{ github.repository_owner }} - password: ${{ secrets.GITEA_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push uses: docker/build-push-action@v4