diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 419b9f7..9f4a4fc 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -22,7 +22,6 @@ jobs: run: | echo "DOCKER_OPTS=\"--insecure-registry ${{ vars.PACKAGES_REGISTRY_URL }}\"" >> /etc/default/docker echo "{\"insecure-registries\": [\"${{ vars.PACKAGES_REGISTRY_URL }}\"]}" > /etc/docker/daemon.json - systemctl restart docker - name: Check out repository code uses: actions/checkout@v4.2.2 @@ -30,19 +29,15 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - # - name: Log in to Gitea Package Registry - # uses: docker/login-action@v3 - # with: - # registry: ${{ vars.PACKAGES_REGISTRY_URL }} - # username: ${{ vars.PACKAGES_REGISTRY_USERNAME }} - # password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} - - name: Log in to Gitea Package Registry - run: echo ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} | docker login ${{ vars.PACKAGES_REGISTRY_URL }} -u ${{ vars.PACKAGES_REGISTRY_USERNAME }} --password-stdin + uses: docker/login-action@v3 with: registry: ${{ vars.PACKAGES_REGISTRY_URL }} username: ${{ vars.PACKAGES_REGISTRY_USERNAME }} password: ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} + + # - name: Log in to Gitea Package Registry + # run: echo ${{ secrets.PACKAGES_REGISTRY_PASSWORD }} | docker login ${{ vars.PACKAGES_REGISTRY_URL }} -u ${{ vars.PACKAGES_REGISTRY_USERNAME }} --password-stdin - name: Build and push Docker image id: push @@ -50,4 +45,4 @@ jobs: with: context: . push: true - tags: ${{ env.REGISTRY_URL }}/${{ gitea.repository }}:latest + tags: ${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}:latest