name: images on: push: branches: [develop, master] tags: ['v*'] env: REGISTRY: git.security-command.org/securitycommand jobs: sandbox: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to the registry run: > echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Build and push run: | image="$REGISTRY/homepage-sandbox" docker build -t "$image:${{ gitea.sha }}" -t "$image:${{ gitea.ref_name }}" sandbox/ docker push --all-tags "$image"