diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 3f162c4..ce499b7 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -13,18 +13,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Docker - run: curl -fsSL https://get.docker.com | sh + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - - name: Start Docker daemon - run: | - dockerd > /dev/null 2>&1 & - sleep 5 - - - name: Log in to Docker registry - run: echo "${{ secrets.registry_password }}" | docker login -u "${{ secrets.registry_user }}" --password-stdin git.hydrar.de + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + registry: git.hydrar.de + username: ${{ secrets.registry_user }} + password: ${{ secrets.registry_password }} - name: Build and push Docker image - run: | - docker build -t git.hydrar.de/jmarya/me-site:latest -t git.hydrar.de/jmarya/me-site:latest-amd64 . - docker push git.hydrar.de/jmarya/me-site:latest + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: git.hydrar.de/jmarya/me-site:latest \ No newline at end of file